HP Prime Graphing Wireless Calculator Uživatelský manuál Strana 660

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 701
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 659
Creates a new list based on the elements in one or more lists by iteratively modifying each element according
to an expression that contains the ampersand character (&).
Examples:
EXECON("&1+1",{1,2,3}) returns {2,3,4}
Where the & is followed directly by a number, the position in the list is indicated. For example:
EXECON("&2–&1",{1, 4, 3, 5}" returns {3, –1, 2}
In the example above, &2 indicates the second element and &1 the rst element in each pair of elements. The
minus operator between them subtracts the rst from the second in each pair until there are no more pairs. In
this case (with just a single list), the numbers appended to & can only be from 1 to 9 inclusive.
EXECON can also operate on more than one list. For example:
EXECON("&1+&2",{1,2,3},{4,5,6}) returns {5,7,9}
In the example above, &1 indicates an element in the rst list and &2 indicates the corresponding element in
the 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 rst 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 specied element in a specied 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 rst element in the rst 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.
612 Chapter 28 Programming in HP PPL
Zobrazit stránku 659
1 2 ... 655 656 657 658 659 660 661 662 663 664 665 ... 700 701

Komentáře k této Příručce

Žádné komentáře