Post Reply 
Now don't run ?
05-06-2016, 02:01 PM (This post was last modified: 05-06-2016 02:02 PM by Tim Wessman.)
Post: #2
RE: Now don't run ?
Hello,

The reason is because when INPUT(f,"...") is run, the expression you type is EVALUATED. If X=2, and you type X^2-1, on exit the INPUT form evaluates and you get 2^2-1, or 3 as your value for f.

You can either put your expression inside ' ' using the two keys [SHIFT][ ( ) ], or put in " " around your expression.

'X^2-1' or "X^2-1" will both work.

You can modify the program to be like this to avoid needing to do ' ' or " ".

INPUT({{f,[2]}}, ....);

TW

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


Messages In This Thread
Now don't run ? - ggauny@live.fr - 05-06-2016, 06:43 AM
RE: Now don't run ? - Tim Wessman - 05-06-2016 02:01 PM
RE: Now don't run ? - ggauny@live.fr - 05-07-2016, 06:44 AM
RE: Now don't run ? - leprechaun - 05-07-2016, 07:30 AM
RE: Now don't run ? - Tim Wessman - 05-07-2016, 07:58 PM



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