Difference between revisions of "Div Command"
From GeoGebra Manual
Line 3: | Line 3: | ||
;Div[ <Dividend Number>, <Divisor Number> ] | ;Div[ <Dividend Number>, <Divisor Number> ] | ||
:Returns the quotient (integer part of the result) of the two numbers. | :Returns the quotient (integer part of the result) of the two numbers. | ||
− | :{{ | + | :{{example|1=<div><code><nowiki>Div[16, 3]</nowiki></code> yields ''5''.</div>}} |
− | |||
;Div[ <Dividend Polynomial>, <Divisor Polynomial> ] | ;Div[ <Dividend Polynomial>, <Divisor Polynomial> ] | ||
− | : Returns the quotient of the two polynomials. | + | :Returns the quotient of the two polynomials. |
− | :{{ | + | :{{example|1=<div><code><nowiki>Div[x^2 + 3 x + 1, x - 1]</nowiki></code> yields ''f(x) = x + 4''.</div>}} |
− | |||
==CAS Syntax== | ==CAS Syntax== | ||
;Div[ <Dividend Number>, <Divisor Number> ] | ;Div[ <Dividend Number>, <Divisor Number> ] | ||
− | :Returns the quotient (integer part of the result) of the two numbers. | + | :Returns the quotient (integer part of the result) of the two numbers. |
− | :{{ | + | :{{example|1=<div><code><nowiki>Div[16, 3]</nowiki></code> yields ''5''.</div>}} |
− | |||
;Div[ <Dividend Polynomial>, <Divisor Polynomial> ] | ;Div[ <Dividend Polynomial>, <Divisor Polynomial> ] | ||
− | :Returns the quotient of the two polynomials. | + | :Returns the quotient of the two polynomials. |
− | :{{ | + | :{{example|1=<div><code><nowiki>Div[x^2 + 3 x + 1, x - 1]</nowiki></code> yields ''x + 4''.</div>}} |
Revision as of 14:26, 8 September 2011
- Div[ <Dividend Number>, <Divisor Number> ]
- Returns the quotient (integer part of the result) of the two numbers.
- Example:
Div[16, 3]
yields 5.
- Div[ <Dividend Polynomial>, <Divisor Polynomial> ]
- Returns the quotient of the two polynomials.
- Example:
Div[x^2 + 3 x + 1, x - 1]
yields f(x) = x + 4.
CAS Syntax
- Div[ <Dividend Number>, <Divisor Number> ]
- Returns the quotient (integer part of the result) of the two numbers.
- Example:
Div[16, 3]
yields 5.
- Div[ <Dividend Polynomial>, <Divisor Polynomial> ]
- Returns the quotient of the two polynomials.
- Example:
Div[x^2 + 3 x + 1, x - 1]
yields x + 4.