Something wrong with my C

  • Thread starter jinro
  • Start date
  • #1
4
0
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!!
 

Answers and Replies

  • #2
35,432
7,296
Show us your code. I can't figure out what's going on from your description.
 

Related Threads on Something wrong with my C

Replies
17
Views
2K
Replies
8
Views
2K
  • Last Post
Replies
17
Views
1K
  • Last Post
Replies
8
Views
1K
Replies
3
Views
2K
Replies
3
Views
3K
Replies
2
Views
2K
Replies
17
Views
3K
Replies
11
Views
884
Top