Post Reply 
HP Prime Python reference guide and tutorial?
08-27-2020, 08:28 PM (This post was last modified: 08-28-2020 01:18 AM by GadgetguyToronto.)
Post: #1
HP Prime Python reference guide and tutorial?
Hello,

I am looking for an HP Prime Python tutorial and / or reference guide (for the python implementation incorporated in the CAS).

Would you have any pointers please?

Thank you!
Find all posts by this user
Quote this message in a reply
08-28-2020, 04:01 PM
Post: #2
RE: HP Prime Python reference guide and tutorial?
Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
Find all posts by this user
Quote this message in a reply
08-28-2020, 04:06 PM
Post: #3
RE: HP Prime Python reference guide and tutorial?
(08-28-2020 04:01 PM)rawi Wrote:  Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
CAS accepts some Python commands. The entire language isn't in there but you can write some CAS programs that look a lot like Python.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
08-28-2020, 09:47 PM
Post: #4
RE: HP Prime Python reference guide and tutorial?
(08-28-2020 04:06 PM)toml_12953 Wrote:  
(08-28-2020 04:01 PM)rawi Wrote:  Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
CAS accepts some Python commands. The entire language isn't in there but you can write some CAS programs that look a lot like Python.

Thank you, that is exactly what I am talking about. Where is this documented? What commands can be used?
Find all posts by this user
Quote this message in a reply
08-29-2020, 09:40 AM
Post: #5
RE: HP Prime Python reference guide and tutorial?
Well Python-like syntax is understood by the CAS, probably because XCas understands it also.

But it is limited, see Parisse’s answer in this thread: https://www.hpmuseum.org/forum/thread-94...l#pid83159

I don’t think there is a reference guide for Python/CAS programming.
Try yourself: create a CAS program and use Python syntax, if you’re not trying to import Python modules, it will work fine.

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
01-04-2024, 05:32 PM (This post was last modified: 01-04-2024 05:44 PM by MikeSD.)
Post: #6
RE: HP Prime Python reference guide and tutorial?
(08-28-2020 04:01 PM)rawi Wrote:  Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
This is not entirely true. There is an app on the latest update, that includes something like MicroPython, and does run a version.

The question is still valid, as far as I can tell. But there does't seem to be any documentation. I can't even find documentation, anywhere, that even tells how to use the Python App. HP sure has slipped with regards to providing documentation.
Find all posts by this user
Quote this message in a reply
01-04-2024, 06:36 PM (This post was last modified: 01-04-2024 06:42 PM by StephenG1CMZ.)
Post: #7
RE: HP Prime Python reference guide and tutorial?
(01-04-2024 05:32 PM)MikeSD Wrote:  
(08-28-2020 04:01 PM)rawi Wrote:  Hi,

Python is not included in the HP Prime. Instead the Prime has a special programming language which is similar to Pascal. A reference for this can be found under the following link:
https://support.hp.com/us-en/product/hp-...60/manuals

Best

Raimund
This is not entirely true. There is an app on the latest update, that includes something like MicroPython, and does run a version.

The question is still valid, as far as I can tell. But there does't seem to be any documentation. I can't even find documentation, anywhere, that even tells how to use the Python App. HP sure has slipped with regards to providing documentation.

That app "on the latest update", is available on the actual HP Prime, but not on the latest update of the Android App.

Last year's mention of a possible update (to the 2021 Android version) have yet to happen.

There have been several tips on using Python in this forum, but little formal documentation.
The Python-in-CAS syntax may be described in XCAS documentation.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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