# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.function.polynomial

• java.lang.Object

• 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 and Description
QuadraticSyntheticDivision(Polynomial polynomial, QuadraticMonomial quadratic)
Divide a polynomial by a quadratic monomial.
• ### Method Summary

All Methods
Modifier and Type Method and 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).
• ### Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
• ### Constructor Detail

public QuadraticSyntheticDivision(Polynomial polynomial,
QuadraticMonomial quadratic)
Divide a polynomial by a quadratic monomial.
Parameters:
polynomial - a polynomial
quadratic - 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