Python to FOCAL Compiler
|
10-06-2015, 07:11 PM
(This post was last modified: 10-06-2015 07:15 PM by Thomas Klemm.)
Post: #6
|
|||
|
|||
RE: Python to FOCAL Compiler
(10-06-2015 03:58 PM)Gerson W. Barbosa Wrote: I don't mean to hijack this thread either, but since you've talked about elliptic integrals and you appear to be in the mood, what about converting the fast algorithm presented by Hugh Steers here to RPN? Here's a Python program based on Hugh's implementation: Code: def ellipse(a, b): And that's the generated FOCAL program using 113 bytes: Code: LBL "ELLIPSE" But we can easily bring this down to 77 bytes: Code: LBL "ELLIPSE" Kind regards Thomas PS: We can't use True in conditions as there's no corresponding comparison operator in the HP-41C. That's why I used 0 == 0 instead in the while-loop. The generated code could then be removed in the optimized variant of the program: Code: 0 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Python to FOCAL Compiler - Thomas Klemm - 10-05-2015, 10:58 PM
RE: Python to FOCAL Compiler - Sukiari - 10-06-2015, 03:36 AM
RE: Python to FOCAL Compiler - Massimo Gnerucci - 10-06-2015, 05:50 AM
RE: Python to FOCAL Compiler - Ángel Martin - 10-06-2015, 11:16 AM
RE: Python to FOCAL Compiler - Gerson W. Barbosa - 10-06-2015, 03:58 PM
RE: Python to FOCAL Compiler - Thomas Klemm - 10-06-2015 07:11 PM
RE: Python to FOCAL Compiler - Gerson W. Barbosa - 10-06-2015, 08:19 PM
RE: Python to FOCAL Compiler - Thomas Klemm - 10-06-2015, 07:55 PM
RE: Python to FOCAL Compiler - Thomas Klemm - 10-06-2015, 08:28 PM
RE: Python to FOCAL Compiler - Gerson W. Barbosa - 10-07-2015, 01:47 AM
RE: Python to FOCAL Compiler - Thomas Klemm - 10-07-2015, 04:34 AM
RE: Python to FOCAL Compiler - Massimo Gnerucci - 10-07-2015, 05:38 AM
Java to FOCAL Compiler - Thomas Klemm - 10-07-2015, 04:38 PM
|
User(s) browsing this thread: 2 Guest(s)