Reference Guide
Full Command and Function Reference 3-175
Output: The result from applying the distributive property of exponentiation over multiplication.
Flags: Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag –3 clear).
Example: Expand
(X+1)
3
.
Command:
POWEXPAND((X+1)^3)
Result:
(X+1)
·
(X+1)
·
(X+1)
POWMOD
Type: Function
Description: Raises an object (number or expression) to the specified power, and expresses the result modulo
the current modulus.
Access: Arithmetic,
!
Þ
MODULO
L
Input: Level 2/Argument 1: The object.
Level 1/Argument 2: The exponent.
Output: The result of the object raised to the exponent, modulo the current modulus.
Flags: Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag –3 clear).
Radians mode must be set (flag –17 set).
PR1
Type: Command
Description: Print Level 1 Command: Prints an object in multiline printer format.
All objects except strings are printed with their identifying delimiters. Strings are printed without
the leading and trailing " delimiters.
If flag –34 is set (printer output directed to the serial port), flag –33 must be clear.
Multiline printer format is similar to multiline display format, with the following exceptions:
•
Strings and names that are more than 24 characters long are continued on the next printer line.
•
The real and imaginary parts of complex numbers are printed on separate lines if they don’t fit
on the same line.
•
Grobs are printed graphically.
•
Arrays are printed with a numbered heading for each row and with a column number before
each element.
For example, the 2 × 3 array
1 2 3
4 5 6
would be printed as follows:
Array { 2 3 }
Row 1
1] 1
2] 2
3] 3
Row 2
1] 4
2] 5
3] 6