4-24 Computer Algebra Commands
Access: Arithmetic, !ÞPOLYNOMIAL
Input: Level 2/Argument 1: The dividend.
Level 1/Argument 2: The divisor.
Output: Level 2/Item 1: The quotient.
Level 1/Item 2: The remainder.
Flags: Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag –3 clear).
Step-by-step mode can be set (flag –100 set).
Radians mode must be set (flag –17 set).
Example: Perform the following division:
x
2
x 1++
2x 4+
-----------------------
Command:
DIV2(X^2+X+1,2*X+4)
Result: {1/2(X-1),3}
DIV2MOD
Type: Command
Description: Performs euclidean division on two expressions modulo the current modulus.
Access: Arithmetic, !Þ MODULO
Input: Level 2/Argument 1: The dividend.
Level 1/Argument 2: The divisor.
Output: Level 2/Item 1: The quotient.
Level 1/Item 2: The remainder.
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).
Example: Find the result of
x
3
4+
x
2
1–
--------------
, modulo 3.
Command:
DIV2MOD(X^3+4,X^2-1)
Result: {X X+1}
DIVIS
Type: Command
Description: Returns a list of divisors of a polynomial or an integer.
Access: Arithmetic, !Þor PARITH
Input: A polynomial or an integer.
Output: A list containing the expressions or integers that exactly divide into the input.
Flags: Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag –3 clear).
Example: Find the divisors of the following polynomial:
x
2
3x 2++
Command:
DIVIS(X^2+3*X+2)
Result: {1,X+1,X+2,X^2+3*X+2}
See also: DIV2