SylvesterMatrix class

A Sylvester matrix is used to compute the discriminant of a polynomial starting from its coefficients.

Constructors

SylvesterMatrix({required List<Complex> coefficients})
The constructor requires complex coefficients for the polynomial P(x).
SylvesterMatrix.fromReal({required List<double> coefficients})
The constructor requires real coefficients for the polynomial P(x).

Properties

coefficients → List<Complex>
The coefficients of the polynomial from which the Sylvester matrix will be built. The list is unmodifiable.
no setter
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildMatrix() → ComplexMatrix
Builds the Sylvester matrix associated to the given polynomial.
matrixDeterminant() → Complex
Computes the determinant of the Sylvester matrix.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
polynomialDiscriminant({bool optimize = true}) → Complex
The discriminant of a polynomial P(x) is the determinant of the Sylvester matrix of P and P' (where P' is the derivative of P).
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override