REM

From iMath
Revision as of 18:09, 28 June 2017 by Jrheinlaender (talk | contribs) (Created page with "{{Keyword | <code>REM ( expression, expression, variable )</code> <code>REM ( expression, expression )</code> | Calculate the remainder of the division of...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

REM ( expression, expression, variable )

REM ( expression, expression )


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Calculate the remainder of the division 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 remainder.


Example

EQDEF REM(x^5 + 1, x - 1, x) will give the result 2, and EXDEF REM(3,2) will print 1.

See also

QUO