numpy.arccosh() : This mathematical function helps user to calculate inverse hyperbolic cosine, element-wise for all arr.
Syntax :
numpy.arccosh(arr, /, out=None, *, where=True,
casting='same_kind', order='K', dtype=None, ufunc 'arccosh')
Parameters :
arr : array_like
Input array.
out : [ndarray, optional] 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.
where : array_like, optional
Values of True indicate to calculate the ufunc at that position, values of False indicate to leave the value in the output alone.
**kwargs :Allows to pass keyword variable length of argument to a function. Used when we want to handle named argument in a function.
Return : An array with inverse hyperbolic cosine of arr
for all arr i.e. array elements.
Note :
2pi Radians = 360 degrees
The convention is to return the angle of arr whose imaginary part lies in [-pi, pi] and the real part in [0, inf].
Code #1 : Working
Output :
Input array :
[2, 1, 10, 100]
Inverse hyperbolic Cosine values :
[ 1.3169579 0. 2.99322285 5.29829237]
Code #2 : Graphical representation