PolynomialTraits_d::Resultant

Definition

This AdaptableBinaryFunction computes the resultant of two polynomials f and g of type PolynomialTraits_d::Polynomial_d with respect to a certain variable.

Note that this functor operates on the polynomial in the univariate view, that is, the polynomial is considered as a univariate polynomial in one specific variable.

Let f and g be two univariate polynomials over some commutative ring A, where

f = fmXm + ...+ f0

and

g = gnXn + ...+ g0.

The resultant of f and g is defined as the determinant of the Sylvester matrix:

Sylvester Matrix

Note that this is a (n+m) × (n+m) matrix as there are n rows for f and m rows that are used for g. The blanc spaces are supposed to be filled with zeros.


begin of advanced section  advanced  begin of advanced section
Let L be the algebraic closure of A, and write f and g as

f := fm i=1m(x-i), i in L

and

g := gn j=1n(x-j), i in L,

then the resultant of f and g is (up to leading coefficients) the product of all pairwise differences of the roots of f and g, namely

res(f,g) = fmn gnm i=1m j=1n(i-j).

end of advanced section  advanced  end of advanced section

In particular, res(f,g) 0 iff f and g have a common factor with a positive degree in X.

There are various ways to compute the resultant. Naive options are the computation of the resultant as the determinant of the Sylvester Matrix or the Bezout Matrix as well as the so called subresultant algorithm, which is a variant of the Euclidean Algorithm. More sophisticated methods may use modular arithmetic and interpolation. For more information we refer to, e.g., [vzGG99].

Refines

AdaptableBinaryFunction

Types

typedef PolynomialTraits_d::Coefficient_type
result_type;
typedef PolynomialTraits_d::Polynomial_d
first_argument_type;
typedef PolynomialTraits_d::Polynomial_d
second_argument_type;

Operations

result_type fo ( first_argument_type f , second_argument_type g )
Computes the resultant of f and g, with respect to the outermost variable.

See Also

Polynomial_d
PolynomialTraits_d
PolynomialTraits_d::UnivariateContent