Previous Up Next

5.30.2  Euclidean quotient: quo

quo returns the euclidean quotient q of the Euclidean division between two polynomials (decreasing power order). If the polynomials are represented as expressions, the variable may be specified as a third argument.
Input:

quo(x^2+2*x +1,x)

Output:

x+2

Input:

quo(y^2+2*y +1,y,y)

Output:

y+2

In list representation, the quotient of x2+2x+4 by x2+x+2 one can also input:

quo([1,2,4],[1,1,2])

Output:

[1]

that is to say the polynomial 1.


Previous Up Next