Thread: 5 * 5 matrix invert

  1. #1
    Unregistered
    Guest

    5 * 5 matrix invert

    how to write 5 * 5 matrix invert?
    Is there any simple examples?
    thank you!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    So is this a maths question or a coding question?

    maths:
    http://www.google.com/search?q=matrix+inversion

    code:
    int matrix[5][5];
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Unregistered
    Guest
    i know the math
    but don't know how to write the codes

  4. #4
    Unregistered
    Guest

    Lightbulb Something to keep in mind.

    Not all matrices are invertible. One simple test to see if a matrix is invertible is by using the determinant. If the determinant is nonzero, it is invertible.

    I don't know how to code this, but I can give information on how an inverse is found....

    If you take your matrix and perform a series of operations on it to transform it to the identity matrix and then perform the exact same operations in the exact same order on the identity matrix, the matrix formed will be the inverse of the original.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C - access violation
    By uber in forum C Programming
    Replies: 2
    Last Post: 07-08-2009, 01:30 PM
  2. Matrix Help
    By HelpmeMark in forum C++ Programming
    Replies: 27
    Last Post: 03-06-2008, 05:57 PM
  3. Gauss-Jordan Matrix Inversion in C++
    By Max_Power82 in forum C++ Programming
    Replies: 3
    Last Post: 12-03-2006, 08:31 PM
  4. Matrix and vector operations on computers
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 05-11-2004, 06:36 AM