Difference between revisions of "Mod Command"

From GeoGebra Manual
Jump to: navigation, search
m (Bot: Automated text replacement (-{{command +{{command|cas=true))
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
{{command|algebra}}
+
{{command|cas=true|algebra}}
 
; Mod[ <Integer a>, <Integer b> ]
 
; Mod[ <Integer a>, <Integer b> ]
 
:Yields the remainder when integer ''a'' is divided by integer ''b''.
 
:Yields the remainder when integer ''a'' is divided by integer ''b''.

Revision as of 13:48, 10 September 2011


Mod[ <Integer a>, <Integer b> ]
Yields the remainder when integer a is divided by integer b.
Example:
Mod[9, 4] yields 1.
Mod[ <Polynomial>, <Polynomial>]
Yields the remainder when the first entered polynomial is divided by the second polynomial.
Example:
Mod[x^3 + x^2 + x + 6, x^2 - 3] yields 9 x + 4.

CAS Syntax

Mod[ <Integer a>, <Integer b> ]
Yields the remainder when integer a is divided by integer b.
Example:
Mod[9, 4] yields 1.
Mod[ <Polynomial>, <Polynomial> ]
Yields the remainder when the first entered polynomial is divided by the second polynomial.
Example:
Mod[x^3 + x^2 + x + 6, x^2 - 3] yields 9 x + 4.
© 2024 International GeoGebra Institute