PHP atanh() Function
In this chapter you will learn:
- Definition for PHP atanh() Function
- Syntax for PHP atanh() Function
- Parameter for PHP atanh() Function
- Return for PHP atanh() Function
- Example - Return the inverse hyperbolic tangent of different numbers
Definition
The atanh() function returns the inverse hyperbolic tangent of a number.
Syntax
PHP atanh() Function has the following syntax.
atanh(number);
Parameter
Parameter | Is Required | Description |
---|---|---|
number | Required. | A number |
Return
Item | Description |
---|---|
Return Value | The hyperbolic tangent of number |
Return Type | Float |
Example
Return the inverse hyperbolic tangent of different numbers:
<?php/* j a v a 2 s .c o m*/
echo(atanh(M_PI_4) . "\n");
echo(atanh(0.50) . "\n");
echo(atanh(-0.50) . "\n");
echo(atanh(-1));
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- Definition for PHP base_convert() Function
- Syntax for PHP base_convert() Function
- Parameter for PHP base_convert() Function
- Return for PHP base_convert() Function
- Example - Convert number with base
- Example - Convert a hexadecimal number to octal number
- Example - Convert an octal number to a decimal number
- Example - Convert an octal number to a hexadecimal number
Home » PHP Tutorial » PHP Math Functions