Difference between revisions of "Mod Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|cas=true|algebra}}
 
{{command|cas=true|algebra}}
 
; Mod[ <Integer a>, <Integer b> ]
 
; Mod[ <Integer a>, <Integer b> ]

Revision as of 22:19, 9 March 2013



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 4 x + 9.

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 4 x + 9.
© 2024 International GeoGebra Institute