public class HyperbolicTension extends AbstractUnivariate
Modifier and Type | Field and Description |
---|---|
static int |
COSH
Hyperbolic Tension Function Type - cosh
|
static int |
SINH
Hyperbolic Tension Function Type - sinh
|
Constructor and Description |
---|
HyperbolicTension(int iType,
double dblTension)
HyperbolicTension constructor
|
Modifier and Type | Method and Description |
---|---|
double |
calcDerivative(double dblVariate,
int iOrder)
Calculate the derivative as a double
|
double |
evaluate(double dblVariate)
Evaluate for the given variate
|
double |
getTension()
Retrieve the Tension Parameter
|
int |
getType()
Retrieve the hyperbolic function type
|
static void |
main(java.lang.String[] astrArgs) |
calcDifferential, calcDifferential
public static final int SINH
public static final int COSH
public HyperbolicTension(int iType, double dblTension) throws java.lang.Exception
iType
- Type of the HyperbolicTension Function - SINH/COSH/TANHdblTension
- Tension of the HyperbolicTension Functionjava.lang.Exception
- Thrown if the input is invalidpublic double evaluate(double dblVariate) throws java.lang.Exception
AbstractUnivariate
evaluate
in class AbstractUnivariate
dblVariate
- Variatejava.lang.Exception
- Thrown if evaluation cannot be donepublic double calcDerivative(double dblVariate, int iOrder) throws java.lang.Exception
AbstractUnivariate
calcDerivative
in class AbstractUnivariate
dblVariate
- Variate at which the derivative is to be calculatediOrder
- Order of the derivative to be computedjava.lang.Exception
public int getType()
public double getTension()
public static final void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception