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
I don't care for whom you voted. If you put ice in your beer, you're crazy.
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
Post Reply 




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