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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)