Post Reply 
Bad argument type, DET(M9)/M8(2,1) in App
01-15-2016, 07:43 AM
Post: #2
RE: Bad argument type, DET(M9)/M8(2,1) in App
Hello,

The problem here is that the result of the -DET(M9)/M8(2,1) is not a number, it's a fraction. And this symbolic object can not be stored in a purely numerical 'Home) matrix (M0).

Your program does mix CAS and Home, which, despite being ok in lots of cases, can sometimes lead to strange things.

My #1 advice would be to use CAS variables rather than home variables for your CAS programs.
If you do want to store the data in a home variables, add an evalf around the -DET(M9)/M8(2,1) code: M0(B,A):=evalf(-DET(M9)/M8(2,1));
and it should work.

cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Bad argument type, DET(M9)/M8(2,1) in App - cyrille de brébisson - 01-15-2016 07:43 AM



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