X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 09 Nov 2012 04:32 PM by  anon
Inverse matrix is failing
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
09 Nov 2012 04:32 PM
    I have a matrix N N FLOAT = Array[3, 3] With the following values: 10.0000 5.45787e+006 3.55141e+006 5.45787e+006 2.97883e+012 1.93831e+012 3.55141e+006 1.93831e+012 1.26125e+012 When I take the inverse of the matrix: u = INVERT(N) The inverse fails, Because the result of u#N 0.894347 1.52182e-006 5.25777e-007 -512203. 1.79728 0.227137 -231619. 0.543829 1.14051 Does not give a 3x3 identity matrix. Any ideas? Thanks

    Deleted User



    New Member


    Posts:
    New Member


    --
    12 Nov 2012 10:06 AM
    What happens if you use the /double keyword in INVERT?

    Deleted User



    New Member


    Posts:
    New Member


    --
    13 Nov 2012 10:22 AM
    Same problem, Does not give a 3x3 identity matrix. 1298510.0 -1.9937495 -0.59229549 -1.9937495 3.7413794e-006 -1.3584707e-007 -0.59229549 -1.3584707e-007 1.8765486e-006

    Deleted User



    New Member


    Posts:
    New Member


    --
    14 Nov 2012 11:25 AM
    Using the following program: pro ex_invert_test n= [ [ 10.0000, 5.45787e+006, 3.55141e+006], $ [ 5.45787e+006, 2.97883e+012, 1.93831e+012], $ [ 3.55141e+006, 1.93831e+012, 1.26125e+012] ] u=invert(n, /double) print, u#n END outputs the following: IDL> ex_invert_test % Compiled module: EX_INVERT_TEST. 1.0000000 -4.4408921e-016 8.8817842e-016 -0.00035095215 1.0000000 2.3283064e-010 -0.00019073486 -1.1641532e-010 1.0000000 IDL> Do you get the same when you run the program?
    You are not authorized to post a reply.