quo - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


rem

remainder of polynomials

quo

quotient of polynomials

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

rem(a, b, x)

rem(a, b, x, 'q')

quo(a, b, x)

quo(a, b, x, 'r')

Parameters

a, b

-

polynomials in x

x

-

name

'q', 'r'

-

(optional) unevaluated names

Description

• 

The rem function returns the remainder of a divided by b. The quo function returns the quotient of a divided by b. The remainder r and quotient q satisfy: a=bq+r  where degreer&comma;x<degreeb&comma;x.

• 

If a fourth argument is included in the calling sequence for rem or quo, it will be assigned the quotient q or remainder r, respectively.

Examples

dividex3+x+1&comma;x2+x+1

false

(1)

quox3+x+1&comma;x2+x+1&comma;x

x1

(2)

r1remx3+x+1&comma;x2+x+1&comma;x&comma;q1

r1x+2

(3)

q1

x1

(4)

ax2+x+1q1+r1

ax2+x+1x1+x+2

(5)

simplifya

x3+x+1

(6)

q2quox43x+2&comma;x2x1&comma;x&comma;r2

q2x2+x+2

(7)

r2

4

(8)

q2+r2x2x1

x2+x+2+4x2x1

(9)

simplify

x43x+2x2x1

(10)

See Also

divide

frem

iquo

irem

prem

Quo

Rem

sprem