| DIL (4) | |||
I made a program on Cramer's Rule but after taking input it just crashes ... Please Help if u can find out whats wrong with my code...
AND THANKS IN ADVANCE!!!!!!!!! | |||
|
|
|||
| TTT (52) | |
| You've forgotten 'int' before main( line 5 ) | |
|
|
|
| DIL (4) | |
|
It did not help!!! i think if there is any problem with using a function into another function? (line 59) | |
|
|
|
| Moschops (5981) | |
|
If det(A) is zero you'll be dividing by zero. What inputs are you using to make it crash? | |
|
|
|
| ne555 (4385) | |
|
I couldn't reproduce it. ¿where does the crash happen? Your algorithm is incorrect as you are overwriting the matrix in the `swapper', then Z will always be 0. Also printf("\n\nThe Value of X = %0.2f",((double)X)/O); integer division returns an integer.
| |
|
|
|
| TTT (52) | |
|
I think there is problem with your algorithm Suppose you are entering a1 b1 c1 d1 a2 b2 c2 d2 a3 b3 c3 d3 In first step when you replace a1 a2 a3 with d1 d2 d3 and in second step when you are replacing { b2 b2 b3} with {d1 d2 d3} a1 a2 a3 is still replaced with d1 d2 d3 So et the end your matrix is d1 d1 d1 d1 d2 d2 d2 d2 d3 d3 d3 d3 | |
|
|
|
| DIL (4) | |
| Can you make the corrections for me i will very grateful | |
|
|
|
| DIL (4) | |
| Thanks sir that was very helpful ... i fixed that problem you just pointed out by making a backup of values and then replacing it before returning value ... Thanks again Sir TTT | |
|
|
|