Javatpoint Logo
Javatpoint Logo

PHP tanh() Function

PHP 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:

Parameter Description Required/Optional
arg Specify a argument Required

Example 1

Output:

Your number is:4
By using 'tanh()' function your value is:0.99932929973907

Example 2

Output:

Your number is:-4
By using 'tanh()' function your value is:-0.99932929973907

Example 3

Output:

Your number is:0.5
By using 'tanh()' function your value is:0.46211715726001

Example 4

Output:

Your number is:-0.5
By using 'tanh()' function your value is:-0.46211715726001

Example 5

Output:

Your number is: M_PI_4
By using 'tanh()' function your value is:0.65579420263267

Next TopicPHP Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA