Post Reply 
Articles or book(s) about the functions behind a scientific calculator
11-25-2018, 07:45 PM
Post: #30
RE: Articles or book(s) about the functions behind a scientific calculator
Addendum:
A while ago I've written a Python to FOCAL Compiler.
The program is still online: just click run ▸ and define your function.
Code:
def example(x): 
    return x**2 + 1

And then run:
Code:
translate(example.__code__)

This will produce the following HP-41 program:
Code:
LBL "EXAMPLE"
STO 00 ; x
RDN
RCL 00 ; x
2
Y↑X
1
+
RTN


And then there's tcab's fancy Python to RPN - source code converter.

It will translate:
Code:
LBL("EXAMPLE")
x**2+1
to:
Code:
LBL "EXAMPLE"
RCL 00
X↑2
1
+
LBL 50
"-Utility Funcs-"
RTN

HTH
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Articles or book(s) about the functions behind a scientific calculator - Thomas Klemm - 11-25-2018 07:45 PM



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