Post Reply 
What does the "approx" key do in RPN mode?
05-16-2020, 08:01 PM
Post: #1
What does the "approx" key do in RPN mode?
Hello,

Wenn I press Shift-Enter in RPN mode, I get an empty matrix ("[]") on the stack. Regardless of whether anything's on the stack at all, so I guess it's independent. What's that for?

Thanks!
Find all posts by this user
Quote this message in a reply
05-17-2020, 05:59 AM
Post: #2
RE: What does the "approx" key do in RPN mode?
Shift Enter calls approx().
approx() is a CAS command. In CAS view it takes the selected or the last value on the stack and returns a numerical approximation. If you call approx() with no arguments, it returns [].
In home view (Textbook or Algebraic mode) it shows the command and you can add arguments.
In Home view RPN mode it runs the command directly, so you can’t see that no arguments are given.

If you really need to use approx() in RPN mode (but maybe you needed EVAL on the shift comma key), put your arguments on the stacks, then call approx(1) to approximate the expression on stack 1, or approx(2) to approximate the expression on stack 2 with precision given on stack 1.
Find all posts by this user
Quote this message in a reply
05-17-2020, 06:02 AM
Post: #3
RE: What does the "approx" key do in RPN mode?
Thanks. I don't think I need that, since I can usually just press the "a b/c" key, which cycles between decimal, fraction, and mixed number form.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: