Math.tanh() returns the hyperbolic tangent value.
Note that all outputs are in the range -1 and +1.

Here are some examples.
System.out.println(Math.tanh(100)); 	//1.0
System.out.println(Math.tanh(3)); 	//0.9950547536867305
System.out.println(Math.tanh(1.01));	//0.7657620182484389
System.out.println(Math.tanh(1)); 	// 0.7615941559557649
System.out.println(Math.tanh(0)); 	//0.0
System.out.println(Math.tanh(-1));	//-0.7615941559557649
System.out.println(Math.tanh(-3));	//-0.9950547536867305
System.out.println(Math.tanh(-100)); 	//-1.0

All Math functions

Post your comments , suggestion , error , requirements etc here

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 All rights reserved worldwide Privacy Policy Disclaimer