Results 1 to 3 of 3

Thread: Inverse of NxN Matrix

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    3

    Question Inverse of NxN Matrix

    How do I write the code to calculate the inverse of an NxN matrix? Thank you in advance.
    Hung Vu

  2. #2
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573
    I think the best you can do is download chapter 2 of "Numerical Recipes". The complete book is free on-line and the algorithms are available in a number of versions such as C, Fortran... Converting from one of these to VB shouldn't be too difficult. From the home page
    http://www.nr.com
    you can then, for example, jump to
    http://www.library.cornell.edu/nr/bookcpdf.html

    My favourite method is the LU decomposition and it appears that handheld calculators by HP use that too for matrix operations.

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151
    Try searching this forum. I think some VB code and a description of the algorithm was posted.

    Possible search keys are: inverse, gauss, matrix.
    Live long & prosper.

    The Dinosaur from prehistoric era prior to computers.

    Eschew obfuscation!
    If a billion people believe a foolish idea, it is still a foolish idea!
    VB.net 2010 Express
    64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width