Recent content by darwinharianto

  1. D

    Solving a Matrix with Elimination: Inputting the Right Number of Values

    maybe you get me wrong, i mean i want to display X1 X2, ... Xn not the full matrix so the results will be like X1 = ... X2 = ... X3 = ... X4 = ... for 4x4 matrix
  2. D

    Solving a Matrix with Elimination: Inputting the Right Number of Values

    okay i have done it all, but i can't display them at the end of the code i use this for(i=0; i<n+1; i++) printf("\n X[i] = %f",x[i]); how can i make it display x1, x2 ... xn ?
  3. D

    Solving a Matrix with Elimination: Inputting the Right Number of Values

    so it is better if i scanf the "n" and put it into a loop if so my loop will be like this? for (i=0; i<=n; i++) for (j=0; j<=n; j++) scanf("%f";&A[j][I]); for my input?
  4. D

    Solving a Matrix with Elimination: Inputting the Right Number of Values

    yes i need the scanf because i have to input numbers on the matrix thank you when i removed the "/n" it does solve the problem
  5. D

    Solving a Matrix with Elimination: Inputting the Right Number of Values

    Homework Statement #include <stdio.h> #include <stdlib.h> #include <math.h> int main() { int i,j,k,n; float A[3][4]; float x[3],c,sum=0; n=2; printf("first row\n"); scanf("%f",&A[0][0]); scanf("%f",&A[0][1]); scanf("%f\n",&A[0][2]); printf("second row\n")...
  6. D

    Why are there only 3-phase and 1-phase systems in electricity?

    okay now i understand about the frequencies thank you
  7. D

    Why are there only 3-phase and 1-phase systems in electricity?

    thanks psparky now I understand why they are using 3 phase but for the frequency i still get confused. So I can conclude that by history people were using low frequencies, but then they changed the frequency to 50 Hz or 60 Hz then all the equipment were adjusted to be used at 50 or 60 Hz, but is...
  8. D

    Why are there only 3-phase and 1-phase systems in electricity?

    Homework Statement why are there only 3 phase systems and 1 phase system, not other systems like 4 phase or more? why do electricity only use 50/60 Hz? Homework EquationsThe Attempt at a Solution for number 1 i assume if there are more phase, the price will be higher so it won't be used. But i...
  9. D

    Simple RL question with laplace

    ooh, so the equation go like this? I(s)=250/s(s+50) I(s)=5/s - 5/(s+50) I(t)=5 - 5 e^ -50 t then because t=0 then I(0) = 5-5 = 0 so because it haven't been started so the current would be 0 okay, thanks
  10. D

    Simple RL question with laplace

    Homework Statement I have a circuit with resistor and inductor (RL) that is placed serial and a power supply. the voltage is constant 50 V at t=0 , R=10 ohm, and L=0.2 H. Find the I using laplace transformation Homework Equations - The Attempt at a Solution my attempt is transform everything...
  11. D

    Can Anyone Help with Simple C Programming in Ax=B Homework?

    oh now i understand at top i wrote x1[0] so i can't make x1[0][1] thanks i wrote another one and made a wrong deduction thanks
  12. D

    Can Anyone Help with Simple C Programming in Ax=B Homework?

    what is second index? i tried to display d and i got the same result i think the problem comes from the forward substitution to find d is there anything wrong in the debugging to find d? thank you for the reply
Back
Top