PDA

View Full Version : something wrong with my C


jinro
Oct15-10, 05:03 PM
hi

i have this problem

this is part of my code, where i am scaling in guassian elimination

A4[a][c] = A[a][c]/t;

when i put printf A4 at the bottom, it shows the right element divided by t

when i put
A[a][c] = A4[a][c];

my output for my input when i scale becomes A[a][c]/t^2. i try to make another matrix A3, and used A3 = A4, it showed the right answer, but i can't make it work for A!!

Mark44
Oct16-10, 01:13 AM
Show us your code. I can't figure out what's going on from your description.