HP Prime Graphing Calculator
The Tutorial Series
This is the third issue of a series of tutorials for the HP
Prime, written by Edward Shore. This tutorial is going
to cover a lot, each with some new programming
commands. I hope you are ready for the intensity! If
you have programmed with the HP 39g, 39g or 39gII,
you will recognize the programming as the HP Prime
programming language (HPPP) is similar. We are using
the latest firmware in this series, available on the
website.
How to start?
1. Press Shift + 1 (Program).
2. Press New. It is the second touch key.
3. Enter the name of the program. Pressing the ALPHA key twice will turn on
UPPERCASE ΑLPHA-LOCK. Pressing ALPHA, Shift, ALPHA will turn on lowercase
alpha-lock. To exit any lock, press the ALPHA key one more time. When you're happy
with the name, press Enter.
Rules for Program Names:
1. Letters, numbers, and the underscore character (_) only.
2. The program name must start with a letter.
Structure of a HP Prime Program
A HPPP program is encased of an EXPORT - BEGIN - END structure. The layout is
generally like this:
EXPORT program_name(arguments)
BEGIN
commands and comments go here
END;
Each line containing a command generally must end with a semicolon (;). A
semicolon can by type by pressing ALPHA then the Plus key ( + ).
Comments can be typed. They are designated by two forward slashes. The slashes
are typed by pressing the Divide key ( ÷ ). Anything in the line following the two
slashes is ignored in running the program.
HP Prime Tutorial Series, by Edward Shore and Klaas Kuperus: #1
Visit our dedicated HP Prime portal:
http://www.hp-prime.com