example python ppl with subroutines hp prime
|
06-08-2021, 01:53 AM
(This post was last modified: 06-08-2021 02:42 AM by Liamtoh Resu.)
Post: #1
|
|||
|
|||
example python ppl with subroutines hp prime
The following demonstrate the useage of subroutines in python and ppl.
A simple pi approximation was used. edit: fixed ppl code, was missing predeclaration for cls(). python: Code:
ppl Code:
This is for those who are looking for a starting point. Thanks/ |
|||
06-08-2021, 05:28 AM
(This post was last modified: 06-08-2021 05:54 AM by toml_12953.)
Post: #2
|
|||
|
|||
RE: example python ppl with subroutines hp prime
(06-08-2021 01:53 AM)Liamtoh Resu Wrote: edit: fixed ppl code, was missing predeclaration for cls(). You don't need to pre-declare functions anymore. The below still works. Code: // aprxpi01 Tom L Cui bono? |
|||
06-08-2021, 05:58 AM
(This post was last modified: 06-08-2021 06:03 AM by Liamtoh Resu.)
Post: #3
|
|||
|
|||
RE: example python ppl with subroutines hp prime
Ok Tom,
Thanks for the quick late night response about the pre-declaration entries. The omission of the predeclarations did not seem to work on the emulator --will check it out on the real hp prime. |
|||
06-08-2021, 12:34 PM
Post: #4
|
|||
|
|||
RE: example python ppl with subroutines hp prime
(06-08-2021 05:58 AM)Liamtoh Resu Wrote: Ok Tom, Are you sure you have the latest beta emulator? It works on mine without the pre-declarations. Tom L Cui bono? |
|||
06-08-2021, 03:45 PM
(This post was last modified: 06-08-2021 04:22 PM by Liamtoh Resu.)
Post: #5
|
|||
|
|||
RE: example python ppl with subroutines hp prime
I had problems trying to get the 20210428 emulator to run so I reverted back to the
2020 emulator. The 20210428 CK is running fine. I have the 20210505 firmware on the real hp prime. I have not sent the updated version to the prime yet. PPL and python are relatively new to me -- I am thinking about backward compatibility. Thanks. edit: The program without the pre-declarations worked ok on the real hp prime. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)