Post Reply 
Sharp PC-1500A Compiler
12-03-2024, 04:55 AM (This post was last modified: 12-03-2024 06:38 AM by Thomas Klemm.)
Post: #12
RE: Sharp PC-1500A Compiler
If you want to run the code in a Jupyter notebook or a Python REPL you can import the functions and alias them with their uppercase names:
Code:
from math import sqrt as SQRT

def radius(x, y):
    return SQRT(x**2 + y**2)

radius(4, 3)

5.0

(12-03-2024 03:41 AM)toml_12953 Wrote:  (…) the converter should know that sqrt is the same as SQRT and tan is the same as TAN, etc.

Andy Bulka provides this converter as a free service.
He describes its use and limitations.
If that's not what you want, you have a few options:
  • write your own converter
  • fork Andy's repository pyrpn and adapt it to your needs
  • contact him directly
  • complain in this forum, which he last visited on 2024-05-12
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Sharp PC-1500A Compiler - Josef - 11-21-2024, 06:05 AM
RE: Sharp PC-1500A Compiler - Jeff_Birt - 11-21-2024, 03:34 PM
RE: Sharp PC-1500A Compiler - Josef - 11-22-2024, 05:49 AM
RE: Sharp PC-1500A Compiler - Josef - 11-27-2024, 08:25 PM
RE: Sharp PC-1500A Compiler - Josef - 11-30-2024, 06:31 PM
RE: Sharp PC-1500A Compiler - Josef - 12-03-2024, 07:45 PM
RE: Sharp PC-1500A Compiler - Josef - 12-01-2024, 12:32 PM
RE: Sharp PC-1500A Compiler - Thomas Klemm - 12-02-2024, 08:41 PM
RE: Sharp PC-1500A Compiler - toml_12953 - 12-02-2024, 11:49 PM
RE: Sharp PC-1500A Compiler - Josef - 12-02-2024, 10:35 PM
RE: Sharp PC-1500A Compiler - Thomas Klemm - 12-03-2024, 03:09 AM
RE: Sharp PC-1500A Compiler - toml_12953 - 12-03-2024, 03:41 AM
RE: Sharp PC-1500A Compiler - Thomas Klemm - 12-03-2024 04:55 AM
RE: Sharp PC-1500A Compiler - Josef - 12-03-2024, 08:00 PM
RE: Sharp PC-1500A Compiler - Josef - 12-04-2024, 06:57 AM



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