RPN save stack to list

11062015, 09:48 AM
Post: #1




RPN save stack to list
Hello
In RPN mode you can save the stack to a list, which I find very useful. Is there a way to restore the list to the stack? How do you address a list element in RPN? in textbook I do LO(2) and I get the second element of the list L0, if I try the same in RPN I get an error. 

11062015, 04:33 PM
Post: #2




RE: RPN save stack to list
(11062015 09:48 AM)retoa Wrote: How do you address a list element in RPN? in textbook I do LO(2) and I get the second element of the list L0, if I try the same in RPN I get an error. In RPN, you put the arguments on the stack then call the function (or reference the list element) with the number of arguments in the parentheses. In your example there's only one argument so 2 goes on the stack and the 1 goes in the parentheses: 2 press Enter L0(1) press Enter Tom L Cui bono? 

11062015, 09:55 PM
Post: #3




RE: RPN save stack to list
OK, I see, as parameter you pass to the functions how many arguments they have to take from the stack.
Thank you very much for the help, this clarifies me many things. 

« Next Oldest  Next Newest »

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