Polynomial greatest common divisor (polynomial_gcd)
Greatest common divisor of two polynomials.
How to write it
polynomial_gcd(p, q)
- p
- A polynomial. Takes a polynomial.
- q
- A polynomial. Takes a polynomial.
Examples
polynomial_gcd(x^2 - 1, x - 1)In the solver,
Open in the solverpolynomial_gcd(x^2 - 1, x - 1)givesx - 1.
Related functions
- polynomial_lcm
Least common multiple of two polynomials.
- polynomial_quotient
Quotient of a polynomial division.
- polynomial_remainder
Remainder of a polynomial division.
- minimal_polynomial
Minimal polynomial of an algebraic number over the rationals.
- numerator
Numerator of a fraction.
- nc_multiply
The noncommutative product: multiplies quaternions in order, and anything else stays as written.