# Div2mod; Divis - HP 48gII Advanced User's Reference Manual

Graphing calculator.

Arithmetic, !Þ
Access:
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:
2
x
+ +
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.
Arithmetic, !Þ
Access:
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
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.
Arithmetic, !Þor P
Access:
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:
2
x
+
3x
+
Command:
DIVIS(X^2+3*X+2)
Result:
{1,X+1,X+2,X^2+3*X+2}
DIV2
4-24 Computer Algebra Commands
POLYNOMIAL
MODULO
3
x
+
4
------------- -
2
x
1
, modulo 3.
ARITH
2