NumPy Tutorial NumPy Statistics NumPy References

NumPy - arcsinh() function



The NumPy arcsinh() function is used to calculate inverse hyperbolic sine of a value. The inverse hyperbolic sine of x is defined as:

arcsinh

Syntax

numpy.arcsinh(a, out=None)

Parameters

a Required. Specify array (array_like) containing elements, of which the inverse hyperbolic sine is calculated.
out Optional. Specify a location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned.

Return Value

Returns the inverse hyperbolic sine of each element in a.

Example:

In the example below, numpy arcsinh() function is used to calculate the inverse hyperbolic sine of each element present in array Arr.

import numpy as np

Arr = np.array([1, 2, 3, 4])

print("The inverse hyperbolic sine of values:")
print(np.arcsinh(Arr))

The output of the above code will be:

The inverse hyperbolic sine of values:
[ 0.88137359  1.44363548  1.81844646  2.09471255]

❮ NumPy - Functions

5