beautypg.com

HP Prime Graphing Wireless Calculator User Manual

Page 304

background image

300

Programming in HP PPL

second list. The plus operator between them adds the two

elements until there are no more pairs. With two lists, the

numbers appended to & can have two digits; in this case,

the first digit refers to the list number (in order from left to

right) and the second digit can still only be from 1 to 9

inclusive.
EXECON can also begin operating on a specified

element in a specified list. For example:

EXECON("&23+&1",{1,5,16},{4,5,6,7})

returns

{7,12}

In the example above, &23 indicates that operations are

to begin on the second list and with the third element. To

that element is added the first element in the first list. The

process continues until there are no more pairs.

HMS

Syntax: →HMS(value)
Converts a decimal value to hexagesimal format; that is,

in units subdivided into groups of 60. This includes

degrees, minutes, and seconds as well as hours, minutes,

and seconds.
Example: →HMS(54.8763) returns 54°52′34.68″

HMS→

Syntax: HMS→(value)
Converts a value expressed in hexagesimal format to

decimal format.
Example: HMS→(54°52′34.68″) returns 54.8763

ITERATE

Syntax: ITERATE(expr, var, ivalue, #times)
For #times, recursively evaluates expr in terms of var

beginning with var = ivalue.
Example: ITERATE(X^2, X, 2, 3) returns 256

TICKS

Syntax: TICKS
Returns the internal clock value in milliseconds.

TIME

Syntax: TIME(program_name)
Returns the time in milliseconds required to execute the
program program_name. The results are stored in the
variable TIME. The variable TICKS is similar. It contains

the number of milliseconds since boot up.