Difference between revisions of "Division Command"

From GeoGebra Manual
Jump to: navigation, search
m (examples formatting)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>{{betamanual|version=4.2}}
+
<noinclude>{{Manual Page|version=5.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|algebra}}
 
{{command|algebra}}
;Division[ <Dividend Number>, <Divisor Number> ]
+
;Division( <Dividend Number>, <Divisor Number> )
:Returns the quotient (integer part of the result) and the remainder of the division of the two numbers.
+
:Gives the quotient (integer part of the result) and the remainder of the division of the two numbers.
:{{example|1=<div><code><nowiki>Division[16, 3]</nowiki></code> yields ''{5, 1}''.</div>}}
+
:{{example|1=<div><code><nowiki>Division(16, 3)</nowiki></code> yields ''{5, 1}''.</div>}}
;Division[ <Dividend Polynomial>, <Divisor Polynomial> ]
+
;Division( <Dividend Polynomial>, <Divisor Polynomial> )
:Returns the quotient and the remainder of the division of the two polynomials.
+
:Gives the quotient and the remainder of the division of the two polynomials.
:{{example|1=<div><code><nowiki>Division[x^2 + 3 x + 1, x - 1]</nowiki></code> yields ''{x + 4, 5}''.</div>}}
+
:{{example|1=<div><code><nowiki>Division(x^2 + 3 x + 1, x - 1)</nowiki></code> yields ''{x + 4, 5}''.</div>}}
 +
{{Note| In the ''Algebra View'' only one variable can be used and it will always be renamed to ''x''. In the ''CAS View'' multivariable division is also supported.
 +
:{{examples|1=<div>
 +
:*<code><nowiki>Division(x^2+y^2, x+y)</nowiki></code> yields ''{x - y, 2y^2}''.
 +
:*<code><nowiki>Division(x^2+y^2, y+x)</nowiki></code> yields ''{y - x, 2x^2}''.</div>}}
 +
}}

Latest revision as of 08:06, 25 June 2019


Division( <Dividend Number>, <Divisor Number> )
Gives the quotient (integer part of the result) and the remainder of the division of the two numbers.
Example:
Division(16, 3) yields {5, 1}.
Division( <Dividend Polynomial>, <Divisor Polynomial> )
Gives the quotient and the remainder of the division of the two polynomials.
Example:
Division(x^2 + 3 x + 1, x - 1) yields {x + 4, 5}.
Note: In the Algebra View only one variable can be used and it will always be renamed to x. In the CAS View multivariable division is also supported.
Examples:
  • Division(x^2+y^2, x+y) yields {x - y, 2y^2}.
  • Division(x^2+y^2, y+x) yields {y - x, 2x^2}.
© 2024 International GeoGebra Institute