PHP tanh() FunctionPHP tanh() function is predefine trigonometry mathematical function. It is used to returns the hyperbolic tangent of a number. It is equal to sinh(x)/cos(x). Syntax:
Example 1Output: Your number is:4 By using 'tanh()' function your value is:0.99932929973907 Example 2Output: Your number is:-4 By using 'tanh()' function your value is:-0.99932929973907 Example 3Output: Your number is:0.5 By using 'tanh()' function your value is:0.46211715726001 Example 4Output: Your number is:-0.5 By using 'tanh()' function your value is:-0.46211715726001 Example 5Output: Your number is: M_PI_4 By using 'tanh()' function your value is:0.65579420263267
Next TopicPHP Math
|