HP Prime Graphing NW280AAABA manual Example →HMS54.8763 returns 5452′34.68″

Models: Prime Graphing NW280AAABA

1 616
Download 616 pages 24.49 Kb
Page 561
Image 561

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″

HMSSyntax: HMS→(value)

Converts a value expressed 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.

Programming in HP PPL

555

Page 561
Image 561
HP Prime Graphing NW280AAABA manual Example →HMS54.8763 returns 5452′34.68″, Example ITERATEX2, X, 2, 3 returns