What does the "approx" key do in RPN mode?
05-16-2020, 08:01 PM
Post: #1
 anyfoo Junior Member Posts: 36 Joined: May 2020
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!
05-17-2020, 05:59 AM
Post: #2
 pinkman Senior Member Posts: 389 Joined: Mar 2018
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.
05-17-2020, 06:02 AM
Post: #3
 anyfoo Junior Member Posts: 36 Joined: May 2020
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.
 « Next Oldest | Next Newest »

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