PHP Function Reference

PHP asinh() Function



The PHP asinh() function returns inverse hyperbolic sine of a value. The inverse hyperbolic sine of x is defined as:

asinh

In special cases it returns the following:

  • If the argument is NAN, then the result is NAN.

Syntax

asinh(number)

Parameters

number Required. Specify the value.

Return Value

Returns the inverse hyperbolic sine of a value.

Example:

In the example below, asinh() function is used to find out the inverse hyperbolic sine of a value.

<?php
echo "asinh(-2) = ".asinh(-2)."\n";
echo "asinh(-1) = ".asinh(-1)."\n";
echo "asinh(0) = ".asinh(0)."\n";
echo "asinh(1) = ".asinh(1)."\n";
echo "asinh(2) = ".asinh(2)."\n";
echo "asinh(100) = ".asinh(100)."\n";
echo "asinh(NAN) = ".asinh(NAN)."\n";
?>

The output of the above code will be:

asinh(-2) = -1.4436354751788
asinh(-1) = -0.88137358701954
asinh(0) = 0
asinh(1) = 0.88137358701954
asinh(2) = 1.4436354751788
asinh(100) = 5.2983423656106
asinh(NAN) = NAN

❮ PHP Math Reference