Input/Output:
|
| Level 1/Argument 1 |
| Level 1/Item 1 |
|
|
|
|
|
|
| z | → | 1/z |
|
| [[ matrix ]] | → | [[ matrix |
|
| 'symb' | → | 'INV(symb)' |
|
| x_unit | → | 1/x_1/unit |
See also: | SINV, / |
|
|
|
|
|
| ||
|
|
|
|
|
INVMOD |
|
|
|
|
Type: | Function |
|
| |
Description: | Performs modular inversion on an object modulo the current modulus. |
| ||
Access: | Arithmetic, !ÞMODULO L |
|
| |
Input: | An object. |
|
| |
Output: | The modular inverse of the object. |
|
| |
Flags: | Exact mode must be set (flag |
|
| |
| Numeric mode must not be set (flag |
|
|
Example: Solve the following for x, modulo the default modulus, 13.
(2x ≡ 1)
Command: INVMOD(2)
Result:
IP
Type: Function
Description: Integer Part Function: Returns the integer part of its argument.
The result has the same sign as the argument.
Access: | !´REALLIP | ( ´is the | ||
Flags: | Numerical Results |
|
| |
Input/Output: |
|
|
|
|
|
|
|
|
|
|
| Level 1/Argument 1 |
| Level 1/Item 1 |
|
|
|
|
|
|
| x | → | n |
|
| x_unit | → | n_unit |
|
| 'symb' | → | 'IP(symb)' |
| 32.3_m |
|
|
|
Example: | IP returns 32_m. |
|
| |
See also: | FP |
|
| |
|
|
|
|
|
IQUOT |
|
|
|
|
Type: | Function |
|
| |
Description: | Returns the integer quotient (or Euclidean quotient) of two integers. That is, given two integers, a | |||
| and b, returns the integer q, such that: |
|
| |
| a = qb + r, and 0 ≤ r < b |
|
| |
Access: | PARITH or Arithmetic, !ÞINTEGER L |
| ||
Input: | Level 2/Argument 1: The dividend. |
|
| |
| Level 1/Argument 2: The divisor. |
|
| |
Output: | The integer quotient. |
|
|