SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.function.polynomial
Class QuadraticSyntheticDivision

java.lang.Object
  extended by com.numericalmethod.suanshu.analysis.function.polynomial.QuadraticSyntheticDivision

public class QuadraticSyntheticDivision
extends java.lang.Object

Divide polynomial P(x) by the quadratic monomial (x2 + ux + v) and give the quotient Q(x) and the remainder (b * (x + u) + a). By polynomial remainder theorem,

P(x) = (x2 + ux + v) Q(x) + b * (x + u) + a


Constructor Summary
QuadraticSyntheticDivision(Polynomial polynomial, double u, double v)
          Divide polynomial P(x) by the quadratic monomial (x2 + ux + v).
 
Method Summary
 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

QuadraticSyntheticDivision

public QuadraticSyntheticDivision(Polynomial polynomial,
                                  double u,
                                  double v)
Divide polynomial P(x) by the quadratic monomial (x2 + ux + v).

Parameters:
polynomial - a polynomial
u - u as in (x2 + ux + v)
v - v as in (x2 + ux + v)
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

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.