Post Reply 
Access RPN stack result in PPL program?
11-22-2014, 07:20 PM (This post was last modified: 11-22-2014 07:21 PM by jayhawk.)
Post: #5
RE: Access RPN stack result in PPL program?
You can read from the stack/history from PPL, no matter what mode you are in.
I use this tecknique to make my programs work in the same way in all three entry modes:
Code:

export showstack()
  local x,y,z,t;

  x:=Ans(1);
  y:=Ans(2);
  z:=Ans(3);
  t:=Ans(4);

  return {x,y,z,t};
end;
This program takes it's arguments from the stack/history no matter if the prime is in RPN, Textbook or Algebraic mode.

However it would be nice if you also could:
Code:

  Ans(2):=7*17;
It would also be nice if a program only returns a value if RETURN is used.
Then we would have an almost true RPN capable calculator!

PS:
My Prime:
Software Version: 2014 7 2 (6031)
Hardware Version: A
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Access RPN stack result in PPL program? - jayhawk - 11-22-2014 07:20 PM



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