CAS command question
|
01-06-2017, 08:46 PM
(This post was last modified: 01-07-2017 12:29 PM by compsystems.)
Post: #46
|
|||
|
|||
RE: CAS command question
(01-06-2017 08:27 PM)Han Wrote: You keep forgetting that the parser, like with almost any other CAS software, will generally evaluate its input. Evaluation of a quoted expression results in an unquoted expression. The net effect is essentially stripping the quotation. So copying the result would be copying an unquoted expression, which is why [up key][copy] gives you 3+4 on the command line, and not '3+4'. Try [up key] twice before copying.. I think it gives more power to the calculator if the expressions between ' ' are not evaluated (expression unchanged and un-evaluated.), for that there is the command EVAL, SIMPLIFY, COLLECT and others, if the expressions are maintained as they are, I could produce programs step by step much more easily, without make long codes and converting to strings Why not do this in hp-prime? YOU or HP-TEAM AGREE? case 1: INPUT EXPR OUTPUT EVAL(EXPR) // OK case2: INPUT 'EXPR' OUTPUT 'EXPR' and not EVAL('EXPR') or at least one system flag EVALUATE EXPRESSION BETWEEN ' ' (ON CAS HISTORY) yes/no ================ When defining a function where the expression is between ' ', in the history is displayed with quotes F1(x):='sin(x)'; ⇨ 'sin(x)' [up key] QUOTE(sin(X)) right(F1); ⇨ QUOTE(sin(X)) left(F1); ⇨ QUOTE(sin(X)) F1(90); ⇨ sin(90) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)