REM: Difference between revisions

From iMath
Jump to navigation Jump to search
(Created page with "{{Keyword | <code>REM ( expression, expression, variable )</code> <code>REM ( expression, expression )</code> | Calculate the remainder of the division of...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Keyword
{{Keyword
|
|
<code>REM ( [[expression]], [[expression]], [[variable]] )</code>
<code>REM ( [[expression]], [[expression]], [[symbol]] )</code>


<code>REM ( [[expression]], [[expression]] )</code>
<code>REM ( [[expression]], [[expression]] )</code>
Line 10: Line 10:
|
|
3=
3=
<code>EQDEF 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>, and <code>EXDEF REM(3,2)</code> will print <code>1</code>.
|
|
4=
4=

Latest revision as of 17:35, 8 July 2017

Syntax

REM ( expression, expression, symbol )

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

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

See also

QUO