Idiv2, Legcd – HP 49g Graphing Calculator User Manual
Page 155
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".
![background image](/manuals/632032/155/background.png)
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:
I D I V 2 ( 1 1 6 3 2 , 8 6 4 )
Result:
{ 1 3 , 4 0 0 }
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