public abstract class PolyFunction1x1Base extends Diff1Function1x1Base
| Constructor and Description |
|---|
PolyFunction1x1Base() |
| Modifier and Type | Method and Description |
|---|---|
PolyFunction1x1Base |
clone() |
boolean |
equals(PolyFunction1x1Base fxn) |
double |
eval(double x)
Evaluates the function at a prescribed input value.
|
double |
eval(DoubleHolder deriv,
double x)
Evaluates both the value and first derivative of this function at a
specified input value.
|
double |
evalDeriv(double x)
Evaluates first derivative of this function at a
specified input value.
|
double |
getA(int idx) |
double[] |
getCoefficents() |
abstract int |
numCoefficients() |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer.
|
void |
setA(int idx,
int a) |
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter.
|
isWritableequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteval, evalDeriveval, inputSizepublic double[] getCoefficents()
public abstract int numCoefficients()
public double getA(int idx)
public void setA(int idx,
int a)
public double eval(double x)
Diff1Function1x1Baseeval in interface Function1x1eval in class Diff1Function1x1Basex - input valuepublic double evalDeriv(double x)
Diff1Function1x1x - input valuepublic double eval(DoubleHolder deriv, double x)
Diff1Function1x1Baseeval in interface Diff1Function1x1eval in class Diff1Function1x1Basederiv - if non-null, returns the derivative valuex - input valuepublic boolean equals(PolyFunction1x1Base fxn)
public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
Scannablewrite.scan in interface Scannablescan in class Diff1Function1x1Basertok - Tokenizer from which to scan the elementref - optional reference object which can be used for resolving references to
other objectsjava.io.IOException - if an I/O or formatting error occuredpublic void write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Scannablescan and complete
enough to allow full reconstruction of the element.write in interface Scannablewrite in class Diff1Function1x1Basepw - stream for writing the elementfmt - numeric formating informationref - optional reference object which can be used for producing references to
other objectspublic PolyFunction1x1Base clone()
clone in interface Clonableclone in class Diff1Function1x1Base