Owner's manual

Table Of Contents
Flags:
Exact mode must be set (flag -105 clear).
Numeric mode must not be set (flag -03 clear).
MULTMOD
Type:
Function
Description: Performs modulai' multiplication of two objects, modulo
the ciuTent modulus.
Access:
Aritlrmetic, FiKMiTti] MODULO
Input:
Level 2/Argument 1: A number or an expression.
Level l/Argiuuent 2: A number or an expression.
Output:
The result of modular multiplication of the two objects,
modulo the current modulus.
Flags:
Exact mode must be set (flag -105 clear).
Numeric mode must not be set (flag -03 clear).
Example: Find the product of 2a’ and 38,r^, modulo the default
modulus, 3.
Command: MULTMOD(2*X, 38*X''2)
Result:
X^'S
NEXTPRIME
Type:
Function
Description: Given an integer, returns the next prime number larger
than the integer.
Access:
Arithmetic, RiMH) integer
Input:
An integer.
Output:
The next prime number larger than the integer.
Example:
Find the closest, larger prime number to 145.
Command: NEXTPRIME(145)
Result:
149
See also: ISPRIME?
PREVPRIME
Page 14-44
Computer Algebra Commands