Post Reply 
subst command in RPN mode (bug ?)
08-12-2015, 10:15 PM
Post: #6
RE: subst command in RPN mode (bug ?)
(08-12-2015 08:55 PM)Marcelo Vanti Wrote:  
(08-12-2015 07:56 PM)Didier Lachieze Wrote:  "'2*Q'" Enter
"'(Q=2)'" Enter
subst(2)

it works here, indeed, if I use q (lowercase letter) rather than Q:
"2*q"
"q=2"
CAS.subst(2) ==> 4
It works as long as q is not defined. But if you create q, for ex by storing 0 to q then the subst command will return 0 as 2*q will be evaluated to 0 before the substitution can be done. To pass 2*q to the CAS for the substitution you need the single quotes inside the double quotes, or two levels of single quotes.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: subst command in RPN mode (bug ?) - Didier Lachieze - 08-12-2015 10:15 PM



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