commands → quotient

quotient(A,B)
quotient(A,B,X)
quotient(A,B,X,P)

The quotient command computes the quotient of A divided by B where A and B can be integers or polynomials. In the polynomial case, the variable X must be specified as the third argument and an optional fourth argument P specifies the modulus.

Examples

# integers
quotient(25,10);
	2

# polynomials
quotient(x^2-1,x+1,x);
	-1+x

# polynomials mod p
quotient(x^2-1,x+1,x,11);
	10+x

References

Gullberg, Jan. Mathematics: From the Birth of Numbers. Norton, 1996.