PolynomialLongDivision class

The "Polynomial long division" is an algorithm that divides a polynomial by another polynomial of the same or lower degree.

The only constraint of this procedure is that the degree of the denominator cannot exceed the degree of the numerator. If this condition is not satisfied, an exception will be thrown.

Constructors

PolynomialLongDivision({required Algebraic polyNumerator, required Algebraic polyDenominator})
Creates a PolynomialLongDivision instance.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
polyDenominator Algebraic
The denominator
final
polyNumerator Algebraic
The numerator.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

divide() AlgebraicDivision
Divides polyNumerator by polyDenominator and wraps quotient and remainder in the AlgebraicDivision class.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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