PHP atanh() Function

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//from   w  w w.j  a v a 2s.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.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions