Post Reply 
HP Prime: CAS Commands in Home Mode
12-19-2013, 03:24 AM
Post: #10
RE: HP Prime: CAS Commands in Home Mode
(12-19-2013 12:57 AM)Han Wrote:  Sure -- all you have to remember is that an unevaluated expression needs single-quoting. So you can pass an expression via:

TEST('X^2+2*X')

and the program

Code:
TEST(k)
BEGIN
  // blah blah
END;

will store the symbolic expression X^2+2*X into k.

Yes, of course, single quotes are fine with upper case X,

but you get an error if you try TEST('x^2+2*x') in home view, so you are forced to use TEST('X^2+2*X'), and then, inside the program, you cannot write something like CAS("subst(k, X='x')"), because nothing gets substututed, (only returns k), so you can't use the function with lower case 'x' for further processing with CAS commands/functions.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP Prime: CAS Commands in Home Mode - Helge Gabert - 12-19-2013 03:24 AM



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