Monday, December 13, 2010

Row Reduction

I was trying to help someone here. And I got curious, as I didn't have experience of writing this program. So this is my try. I stuck when I try input of this matrix.

0 1 2
3 4 5
6 7 8

For some reason, when it reach

1 4/3 4/5
0 1 2
0 -1 -2

It becomes

1 4/3 4/5
0 1 2
0 0 -1.33227e-015

Where it supposed to be 0 instead. = =" I will take a look at it again. Maybe something to do with my algorithm.

No comments:

Post a Comment