Java Utililty Methods tanh

List of utility methods to do tanh

Description

The list of methods to do tanh are organized into topic(s).

Method

doubletanh(double paramDouble)
tanh
return sinh(paramDouble) / cosh(paramDouble);
doubletanh(double t)
tanh
Double aux = new Double(sinh(t) / cosh(t));
if (aux.isNaN()) {
    if (t > 0.0)
        return 1.0;
    else
        return -1.0;
return aux.doubleValue();
...
doubletanh(double x)
Returns the hyperbolic tangent of a value.
return Math.tanh(x);
doubletanh(double x)
Returns the hyperbolic tangent of a double.
double ans, y;
y = Math.abs(x);
if (Double.isNaN(x)) {
    ans = Double.NaN;
} else if (y < 1.82501e-08) {
    ans = x;
} else if (y <= 1.0) {
    ans = x * (1.0 + csevl(2.0 * x * x - 1.0, TANH_COEF));
...
doubletanh(Double x)
Tanh.
return Math.tanh(x);
doubletanh(double z)
tanh
double eToTheZ = StrictMath.pow(StrictMath.E, z);
double eToTheMinusZ = StrictMath.pow(StrictMath.E, -z);
return ((eToTheZ - eToTheMinusZ) / (eToTheZ + eToTheMinusZ));
doubletanh(final double x)
tanh
return Math.tanh(x);
doubletanhDerivative(final double thOutput)
tanh Derivative
return 1 - (thOutput * thOutput);
doubletanhFunction(double x)
tanh Function
return Math.tanh(x);
doubletanht(double temp)
tanht
if (temp < -10)
    return TANH[0];
else if (temp >= 10)
    return TANH[9999];
else
    return TANH[(int) (temp * 500) + 5000];