Difference between revisions of "Mod Command"

From GeoGebra Manual
Jump to: navigation, search
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|algebra}}
; Mod[Integer a, Integer b]: Yields the remainder when integer ''a'' is divided by integer ''b''.
+
; Mod[ <Integer a>, <Integer b> ]
; Mod[Polynomial, Polynomial]: Yields the remainder when the first entered polynomial is divided by the second polynomial.
+
:Yields the remainder when integer ''a'' is divided by integer ''b''.
 +
;Mod[ <Polynomial>, <Polynomial>]
 +
:Yields the remainder when the first entered polynomial is divided by the second polynomial.
 
==CAS Syntax==
 
==CAS Syntax==
; Mod[Integer a, Integer b]: Yields the remainder when integer ''a'' is divided by integer ''b''.
+
;Mod[ <Integer a>, <Integer b> ]
; Mod[Polynomial, Polynomial]: Yields the remainder when the first entered polynomial is divided by the second polynomial.
+
:Yields the remainder when integer ''a'' is divided by integer ''b''.
 
+
;Mod[ <Polynomial>, <Polynomial> ]
{{example|1=<code>Mod[9,4]</code> yields ''1''. <code>Mod[x^3+x^2+x+6,x^2-3]</code> yields ''9x+4''.}}
+
:Yields the remainder when the first entered polynomial is divided by the second polynomial.
 +
{{example|1=<div>
 +
* <code><nowiki>Mod[9, 4]</nowiki></code> yields ''1''
 +
* <code><nowiki>Mod[x^3 + x^2 + x + 6, x^2 - 3]</nowiki></code> yields ''9x + 4''.
 +
</div>}}

Revision as of 10:12, 19 August 2011


Mod[ <Integer a>, <Integer b> ]
Yields the remainder when integer a is divided by integer b.
Mod[ <Polynomial>, <Polynomial>]
Yields the remainder when the first entered polynomial is divided by the second polynomial.

CAS Syntax

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