hp40g+.book Page 25 Friday, December 9, 2005 1:03 AM

Program constants

The program constants are numbers that have been assigned to various calculator settings to enable you to test for or specify such a setting in a program. For example, the various display formats are assigned the following numbers:

1Standard

2Fixed

3Scientific

4Engineering

5Fraction

6Mixed fraction

In a program, you could store the constant number of a particular format into a variable and then subsequently test for that particular format.

To access the menu of program constants:

1.Press .

2.Press .

3.Use the arrow keys to navigate through the options.

4.Click and then to display the number assigned to the option you selected in the previous step.

The use of program constants is illustrated in more detail in “Programming” on page 21-1

Physical constants

There are 29 physical constants—from the fields of chemistry, physics and quantum mechanics—that you can use in calculations. A list of all these constants can be found in “Physical Constants” on page R-16.

To access the menu of physical constants:

1.Press .

2.Press .

Using mathematical functions

13-25