PHP atanh() Function

In this chapter you will learn:

  1. Definition for PHP atanh() Function
  2. Syntax for PHP atanh() Function
  3. Parameter for PHP atanh() Function
  4. Return for PHP atanh() Function
  5. 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:

  1. Definition for PHP base_convert() Function
  2. Syntax for PHP base_convert() Function
  3. Parameter for PHP base_convert() Function
  4. Return for PHP base_convert() Function
  5. Example - Convert number with base
  6. Example - Convert a hexadecimal number to octal number
  7. Example - Convert an octal number to a decimal number
  8. Example - Convert an octal number to a hexadecimal number