Showing results for 
Search instead for 
Did you mean: 
Level 2
14 6 2 2
Message 1 of 2
Flag Post


HP Prime Linear Solver question

HP Recommended
HP Prime

How do you "solve" a matrix in the way the Linear Solver app does, if the matrix is greater than 3x4?


The Prime User Guide says you do this by storing the two matrices in M1 and M2, then calculate M2^-1 • M1.  However, this often doesn't work—I believe—because M2 isn't invertible (Home says "Error: X/0" and CAS says "Error: Invalid Dimension").


I'm just begging Linear Algebra class, so enlighten me if I've got a concept or term wrong.



0 Kudos
Tags (1)
Level 6
Level 6
252 251 42 77
Message 2 of 2
Flag Post
HP Recommended


look at the RREF command.

It stands for Row Reduced Echelon form...

Basically, it will perform line[n]=line[n]+factor*line[j] operations until it can get an identity matrix on the left part of the matrix (which is how you solve a matrix by hand, or invert a matrix by hand)...

It works on any matrix, it does not have to be square.


more info is available (with example) in the build in help



I am an HP Employee
0 Kudos
Tags (1)
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation