HP Forums

Full Version: Matrices
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In CAS mode I entered elements into a matrix (2x2), some elements are irrational numbers (sqrt(2) etc). when I perform operations on the matrix the output is in decimal form. Is there some way to display the resultant matrix with exact terms ?

Thank you.
Show an example and a screenshot. Without an example, it's hard to guess where the problem is on your end.

Piotr
Image attached.
The problem arises from the fact that you used the M1 variable, which is a built-in global variable for HOME (not CAS), and it only stores numerical values in matrices. Create your own variable, e.g. "mat1" (preferably in lowercase, as is customary in CAS, though uppercase would also work) and do the same thing, and you'll see there won't be an issue. Alternatively, you can perform the calculations directly without using variables.
Thank you komame, your suggestion works.
Reference URL's