HP Forums
function of a matrix - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: function of a matrix (/thread-13183.html)



function of a matrix - HPcalc - 06-26-2019 04:03 AM

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


RE: function of a matrix - parisse - 06-26-2019 05:41 AM

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.


RE: function of a matrix - HPcalc - 06-26-2019 11:11 AM

(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....


RE: function of a matrix - parisse - 06-28-2019 07:53 PM

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...