Post Reply 
Adjoint matrix (my function): ok with numbers but not symbolics
11-10-2017, 04:04 PM (This post was last modified: 11-10-2017 04:05 PM by salvomic.)
Post: #1
Adjoint matrix (my function): ok with numbers but not symbolics
hi,
in the code in this program the function adj(m) works well with numbers like
Code:
adj([1,2],[3,4])
but returns a "bad argument type" error with symbolic values like
Code:
adj([a,b],[c,d])
.
Why?

The need to have this function is because the new adjoint_matrix() in the CAS is, as it must be, more detailed, and it returns characteristic polynomial of A and the comatrix o A-xI, i.e.
Code:

adjoint_matrix([1,2],[4,3]);
[[1, -a-d, a*d-b*c], [ [[1],[0]], [[-d,b],[c,-a]] ] ]
that's correct, but isn't the simple desired form (only TRN(cofactors(mat)) ):
Code:
[[d, -b],[-c,a]]

Any help, please, using (or not) the new adjoint_matrix()?

Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Adjoint matrix (my function): ok with numbers but not symbolics - salvomic - 11-10-2017 04:04 PM



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