QUO: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
| | | | ||
3= | 3= | ||
<code> | <code>EXDEF QUO(x^5 - 1, x - 1, x)</code> will give the result <code>x^4 + x^3 + x^2 + x + 1</code>, and <code>EXDEF QUO(3,2)</code> will print <code>1</code>. | ||
| | | | ||
4= | 4= |
Latest revision as of 17:32, 8 July 2017
Syntax
QUO ( expression, expression, symbol )
QUO ( expression, expression )
Implemented in iMath since version 2.2.0 or earlier.
Explanation
Calculate the quotient of two polynomials in the given variable. An error message will be shown if one of the expressions is not a polynomial in the variable.
The second form is only valid for numerical values. It will calculate the integer quotient.
Example
EXDEF QUO(x^5 - 1, x - 1, x)
will give the result x^4 + x^3 + x^2 + x + 1
, and EXDEF QUO(3,2)
will print 1
.