REM: Difference between revisions

From iMath
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
Line 2: Line 2:
|
|
<code>REM ( [[expression]], [[expression]], [[symbol]] )</code>
<code>REM ( [[expression]], [[expression]], [[symbol]] )</code>
<code>REM ( [[expression]], [[expression]] )</code>
|
|
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.
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.
To calculate the integer remainder, use the <code>irem</code> function.
|
|
3=
3=
<code>EXDEF REM(x^5 + 1, x - 1, x)</code> will give the result <code>2</code>, and <code>EXDEF REM(3,2)</code> will print <code>1</code>.
<code>EXDEF REM(x^5 + 1, x - 1, x)</code> will give the result <code>2</code>.
|
|
4=
4=

Latest revision as of 15:18, 2 March 2025

Syntax

REM ( expression, expression, symbol )


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.

To calculate the integer remainder, use the irem function.


Example

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

See also

QUO