Owner's manual

Table Of Contents
IDIV2
Type:
Command
Description: For two integers, a and b, returns the integer part of a/h,
and the remainder, r.
Access:
Arithmetic, RiWTH] integer
Input:
Level 2/Ai'giiment 1: a.
Level 1/Argument 2: 6.
Output:
Level 2/Item 1: The integer part of a/b.
Level 1/Item 2: The remainder.
Flags:
Exact mode must be set (flag -105 clear).
Numeric mode must not be set (flag -03 clear).
Example:
Return the integer part and the remainder of 11632/864.
Command:
IDIV2(11632,864)
Result: {13,400}
See also: DIV2
lEGCD
Type: Command
Description:
Given two integers x and y, returns three integers, a, b,
and c, such that:
ax+by=c
Access: Arithmetic, RiRiTH) INTEGER
Input:
Level 2/Argument 1: x.
Level 1/Argimrent 2: y.
Output:
Level 3/Item 1: c.
Level 2/Item 2: a.
Level 1/Item 3: b.
Flags:
Exact mode must be set (flag -105 clear).
Numeric mode must not be set (flag -03 clear).
See also: EGCD
Page 14-32
Computer Algebra Commands