public class Polynomial extends R1ToR1
Constructor and Description |
---|
Polynomial(int iDegree)
Polynomial constructor
|
Modifier and Type | Method and Description |
---|---|
double |
derivative(double dblVariate,
int iOrder)
Calculate the derivative as a double
|
double |
evaluate(double dblVariate)
Evaluate for the given variate
|
double |
getDegree()
Retrieve the degree of the polynomial
|
double |
integrate(double dblBegin,
double dblEnd)
Integrate over the given range
|
static void |
main(java.lang.String[] astrArgs) |
differential, differential, maxima, maxima, minima, minima
public Polynomial(int iDegree) throws java.lang.Exception
iDegree
- Degree of the Polynomialjava.lang.Exception
- Thrown if the input is invalidpublic double evaluate(double dblVariate) throws java.lang.Exception
R1ToR1
public double derivative(double dblVariate, int iOrder) throws java.lang.Exception
R1ToR1
derivative
in class R1ToR1
dblVariate
- Variate at which the derivative is to be calculatediOrder
- Order of the derivative to be computedjava.lang.Exception
- Thrown if Inputs are Invalidpublic double integrate(double dblBegin, double dblEnd) throws java.lang.Exception
R1ToR1
public double getDegree()
public static final void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception