Type: | Function |
|
Description: | Displays a greeting from the CAS team and dedication to all HP calculator users. | |
Access: | Catalog, …µ |
|
Example: | In algebraic mode, the message can be extended. Try: DEDICACE(Salutations) | |
|
|
|
DEF |
|
|
Type: | Function |
|
Description: | Defines a variable or a function. Works like the DEFINE command, except that it returns a result | |
| and can be included in an algebraic expression. Given an expression as input, DEF stores the | |
| expression, unlike STORE which evaluates the expression and stores the numerical value. | |
Access: | Catalog, …µ |
|
Input: | Level 1/Argument 1: An expression of the form | |
| name=expression or |
|
| name(name1, … namen)=expression(name1,… name n) | |
| In the first case, name is the name of a variable, and expression is an expression or a number to be | |
| stored in the variable. If the variable does not exist, it is created in the current directory. In the | |
| second case, name is the name of a variable that will be treated as a function, name1 to namen are | |
| formal variables used to define inputs the function will take. | |
Output: | Level 1/Item 1: Unlike DEFINE, which returns NOVAL in Algebraic mode, and no result in | |
| RPN mode, DEF returns the expression used as the input. | |
Flags: | Exact mode must be set (flag | |
| Numeric mode must not be set (flag | |
Example 1: | Define a new function that calculates: |
|
|
| |
Command: |
| |
Result: |
| |
Example 2: | Check that the newly defined function works: | |
Command: | NEW(2,1) |
|
Result: | 1/3 |
|
See also: | DEFINE, STORE |
|
|
|
|
DEFINE | Command |
|
Type: |
| |
Description: | Define Variable or Function Command: Stores the expression on the right side of the = in the | |
| variable specified on the left side, or creates a | |
| If the left side of the equation is name only, DEFINE stores exp in the variable name. | |
| If the left side of the equation is name followed by parenthetical arguments name1 … namen, | |
| DEFINE creates a | |
Access: | !À | ( Àis the |
Flags: | Numerical Results |
|