1. Computing

Discuss in my forum

Tanh () PHP Function

By , About.com Guide

Definition: The tanh () PHP Function is used to find the hyperbolic tangent of the imputed number. So tanh (x) would return the hyperbolic tangent of x, or sinh (x)/cosh(x). This will produce a curve who's inverse is the arc hyperbolic tangent.
Also Known As: hyperbolic tangent
Examples:
 <?php 
 echo(tanh(1) . "<br />"); 
 echo(tanh(0) . "<br />"); 
 echo(tanh(-1) . "<br />"); 
 ?> 

This would give the results:
0.76159415595576
0
-0.76159415595576

Related Video
Excel Autosum Function
Basic PHP Syntax
  1. About.com
  2. Computing
  3. PHP / MySQL
  4. PHP Functions
  5. Tanh PHP Function - Hyperbolic Tangent PHP Function

©2013 About.com. All rights reserved.