hp40g+.book Page 1 Friday, December 9, 2005 1:03 AM
21
Programming
Introduction
This chapter describes how to program using the HP 40gs. In this chapter you’ll learn about:
•using the Program catalog to create and edit programs
•programming commands
•storing and retrieving variables in programs
•programming variables.
H I N T More information on programming, including examples and special tools, can be found at HP’s calculators web site:
http://www.hp.com/calculators
The Contents of a Program
Structured Programming
An HP 40gs program contains a sequence of numbers, mathematical expressions, and commands that execute automatically to perform a task.
These items are separated by a colon ( : ). Commands that take multiple arguments have those arguments separated by a semicolon ( ; ). For example,
PIXON xposition;yposition:
Inside a program you can use branching structures to control the execution flow. You can take advantage of structured programming by creating
Programming |
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|