Post Reply 
About RPN history
12-05-2017, 04:19 PM
Post: #12
RE: About RPN history
(12-05-2017 03:56 PM)Voldemar Wrote:  Ans(1) works, do not work Ans(2), Ans(3)...

In RPN mode you pass the number of parameters inside the brackets, so when you type Ans(1) you tell the Prime to take one value from the stack and pass it to Ans.
If you type Ans(2) you tell the Prime to take 2 values from the stack levels 1 and 2 and pass them to Ans, which is not supporting multiple parameters....

in summary, in RPN mode you have:
Ans -> return the last values, for ex. 5 ENTER 6 x Ans returns 5 and 6 to the stack.
Ans(1) -> consume the stack level 1 and use it as index to return the value in the corresponding stack level
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
About RPN history - salvomic - 12-05-2017, 01:31 PM
RE: About RPN history - Voldemar - 12-05-2017, 01:57 PM
RE: About RPN history - salvomic - 12-05-2017, 02:20 PM
RE: About RPN history - Voldemar - 12-05-2017, 02:57 PM
RE: About RPN history - salvomic - 12-05-2017, 03:05 PM
RE: About RPN history - Voldemar - 12-05-2017, 03:15 PM
RE: About RPN history - salvomic - 12-05-2017, 03:19 PM
RE: About RPN history - Voldemar - 12-05-2017, 03:25 PM
RE: About RPN history - salvomic - 12-05-2017, 03:26 PM
RE: About RPN history - Voldemar - 12-05-2017, 03:56 PM
RE: About RPN history - Didier Lachieze - 12-05-2017 04:19 PM
RE: About RPN history - Voldemar - 12-05-2017, 04:35 PM
RE: About RPN history - Marcelo Vanti - 12-07-2017, 05:57 PM
RE: About RPN history - salvomic - 12-05-2017, 04:04 PM
RE: About RPN history - Voldemar - 12-05-2017, 04:25 PM
RE: About RPN history - salvomic - 12-05-2017, 04:27 PM
RE: About RPN history - salvomic - 12-05-2017, 04:40 PM
RE: About RPN history - Voldemar - 12-05-2017, 05:49 PM
RE: About RPN history - salvomic - 12-05-2017, 05:56 PM
RE: About RPN history - Voldemar - 12-05-2017, 07:30 PM
RE: About RPN history - salvomic - 12-05-2017, 07:37 PM
RE: About RPN history - Tim Wessman - 12-05-2017, 08:09 PM
RE: About RPN history - salvomic - 12-05-2017, 08:15 PM
RE: About RPN history - salvomic - 12-08-2017, 08:17 AM



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