Java tanh tanh(double z)

Here you can find the source of tanh(double z)

Description

tanh

License

Open Source License

Declaration

public static double tanh(double z) 

Method Source Code

//package com.java2s;

public class Main {
    /** *///w  w w.  j  a va2  s  .c om
    public static double tanh(double z) {
        double eToTheZ = StrictMath.pow(StrictMath.E, z);
        double eToTheMinusZ = StrictMath.pow(StrictMath.E, -z);
        return ((eToTheZ - eToTheMinusZ) / (eToTheZ + eToTheMinusZ));
    }
}

Related

  1. tanh(double paramDouble)
  2. tanh(double t)
  3. tanh(double x)
  4. tanh(double x)
  5. tanh(Double x)
  6. tanh(final double x)
  7. tanhDerivative(final double thOutput)
  8. tanhFunction(double x)
  9. tanht(double temp)