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

  • 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 630
Program commands
This section describes each program command. The commands under the menu are described rst.
The commands under the menu are described in Commands under the Cmds menu on page 589.
Commands under the Tmplt menu
Block
The block commands determine the beginning and end of a sub-routine or function. There is also a Return
command to recall results from sub-routines or functions.
BEGIN END
Syntax: BEGIN command1; command2;…; commandN; END;
Denes a command or set of commands to be executed together. In the simple program:
EXPORT SQM1(X)
BEGIN
RETURN X^2-1;
END;
the block is the single RETURN command.
If you entered SQM1(8) in Home view, the result returned would be 63.
RETURN
Syntax: RETURN expression;
Returns the current value of expression.
KILL
Syntax: KILL;
Stops the step-by-step execution of the current program (with debug).
Branch
In what follows, the plural word commands refers to both a single command or a set of commands.
IF THEN
Syntax: IF test THEN commands END;
Evaluate test. If test is true (not 0), executes commands. Otherwise, nothing happens.
IF THEN ELSE
Syntax: IF test THEN commands 1 ELSE commands 2 END;
Evaluate test. If test is true (not 0), it executes commands 1, otherwise, it executes commands 2.
Program commands 583
Zobrazit stránku 630
1 2 ... 626 627 628 629 630 631 632 633 634 635 636 ... 700 701

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

Žádné komentáře