Here you can find the source of tanh(final double x)
public static double tanh(final double x)
//package com.java2s; //License from project: Open Source License public class Main { public static double tanh(final double x) { return Math.tanh(x); }//from ww w .j ava 2 s.c om }