Post Reply 
Matrices
10-11-2023, 12:11 AM
Post: #1
Matrices
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.
Find all posts by this user
Quote this message in a reply
10-11-2023, 06:08 AM (This post was last modified: 10-11-2023 06:09 AM by komame.)
Post: #2
RE: Matrices
Show an example and a screenshot. Without an example, it's hard to guess where the problem is on your end.

Piotr
Find all posts by this user
Quote this message in a reply
10-11-2023, 11:43 AM
Post: #3
RE: Matrices
Image attached.


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
10-11-2023, 12:02 PM
Post: #4
RE: Matrices
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.
Find all posts by this user
Quote this message in a reply
10-11-2023, 12:17 PM
Post: #5
RE: Matrices
Thank you komame, your suggestion works.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)