Class QuadraticSyntheticDivision
- java.lang.Object
-
- dev.nm.analysis.function.polynomial.QuadraticSyntheticDivision
-
public class QuadraticSyntheticDivision extends Object
Divide a polynomial P(x) by a quadratic monomial (x2 + ux + v) to give the quotient Q(x) and the remainder (b * (x + u) + a). The polynomial remainder theorem says:P(x) = (x2 + ux + v) Q(x) + (b * (x + u) + a)
-
-
Constructor Summary
Constructors Constructor Description QuadraticSyntheticDivision(Polynomial polynomial, QuadraticMonomial quadratic)
Divide a polynomial by a quadratic monomial.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
a()
Get a as in the remainder (b * (x + u) + a).double
b()
Get b as in the remainder (b * (x + u) + a).Polynomial
quotient()
Get the quotient Q(x).
-
-
-
Constructor Detail
-
QuadraticSyntheticDivision
public QuadraticSyntheticDivision(Polynomial polynomial, QuadraticMonomial quadratic)
Divide a polynomial by a quadratic monomial.- Parameters:
polynomial
- a polynomialquadratic
- a quadratic monomial
-
-
Method Detail
-
quotient
public Polynomial quotient()
Get the quotient Q(x).- Returns:
- Q(x)
-
a
public double a()
Get a as in the remainder (b * (x + u) + a).- Returns:
- a
-
b
public double b()
Get b as in the remainder (b * (x + u) + a).- Returns:
- b
-
-