Python to RPN converter
|
02-20-2018, 10:39 PM
(This post was last modified: 02-20-2018 11:43 PM by tcab.)
Post: #31
|
|||
|
|||
RE: Python to RPN converter
The reason your program is not running when you call "H1" is that it is not calling the "Here" function. You have to call Python functions to run them. So your code should be:
Code:
Another way to write this is to get rid of the LBL and simply Code:
Or you can even run your code in the global namespace like this: Code:
As for your calls to LOCAT and LOC8 - they are not defined anywhere and don't exist on the HP42S (see cmd reference) and so are being converted to local label calls starting with single letters e.g. XEQ B - which won't exist if you try to run the code. Finally - a small point - you don't need the AVIEW after the print() because print() already generates an AVIEW for you. See the section on text and the alpha register in the help page. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: jespo, 1 Guest(s)