i get a non-zero result for:
| 1 2 3 |
| 4 5 6 |
| 7 8 9 |
i.e. det [[1,2,3],[4,5,6],[7,8,9]]
the determinant should be zero as this matrix is singular. it follows
that there should also be no inverse - yet one is calculated.
the determinant is very small (and the matrix inverse is very large as
a result of 1/det)
but i don't understand why it's non-zero - HP48GX is correct, and
complains with INV Error: Infinite result
what's the explanation?
thanks
http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv014.cgi?read=65551
I also tried this with a real 42S and the determinant is also a very small non-zero number. So the behavior is consistent. Thomas added a singular matrix error option, but I'm not sure why it's not triggered in this case when the option is on.
If you are still curious I would ask Thomas Okken.
http://thomasokken.com/free42/
My 3x3 A is being LU decomposed into:
A = LU
| 1 2 3 | | 1 0 0 | | p q r |
| 4 5 6 | = | a 1 0 | | 0 s t |
| 7 8 9 | | b c 1 | | 0 0 u |
det(A) = det(L)det(U)
= det(U)
= p * s * u
That's going to be very fast on big matrices, but the LU decomp
scaling factors will result in errors and these show up in my final
result.
LU=A
| 1 0 0 || 1 2 3 | | 1 2 3 |
| 4 1 0 || 0 -3 -6 | = | 4 5 6 |
| 7 2 1 || 0 0 0 | | 7 8 9 |
det(U) = 1 * -3 * 0 = 0
Looks as though I'm really going to have to go through what actually
happens in the code - time to learn ddd debugger...
> --
> You received this message because you are subscribed to the Google Groups "iPhone42s" group.
> To post to this group, send email to ipho...@googlegroups.com.
> To unsubscribe from this group, send email to iphone42s+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/iphone42s?hl=en.
>