HP Forums

Full Version: function of a matrix
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way to have functions such as EXP, SIN, COS, LOG, SQRT, etc...accept matrix argument (square matrix)? I know how to go through the eigenvector and eigenvalues and implement this but other calculators even my old TI-92 could easily accept square matrix and give the exp() of it for example
Yes, this is built-in from CAS, e.g exp([[1,2],[3,4]]) (exact) or exp([[1.,2.],[3.,4.]]) (approx). Exact will work only if eigenvalues can be computed symbolically, approx will not work if matrix is not diagonalizable.
(06-26-2019 05:41 AM)parisse Wrote: [ -> ]Yes, this is built-in from CAS, e.g exp([[1,2],[3,4]]) (exact) or exp([[1.,2.],[3.,4.]]) (approx). Exact will work only if eigenvalues can be computed symbolically, approx will not work if matrix is not diagonalizable.

Thanks!

I actually realized that it works in CAS after my post. Sorry about that.
I am very new to this. I just got my Prime 2 days ago and there is a lot to learn yet

but why it doesnt work in Home screen (numerical mode?)?

I also have a off topic question, what is the largest matrix size that Prime can handle?
for things like solving linear equations, or eigensystem calculation, LU decomposition, inverse, etc....
Inside CAS, approx numeric matrix computations run fast enough at size 100. This should be sufficient for a calculator. If you need larger matrices, a computer is probably more appropriate...
Reference URL's