The numpy.sinh()
function in Python computes an input array x
's hyperbolic sine, element-wise.
Mathematically:
Also:
sinhx =
numpy.sinh(x, /, out=None, *, where=True)
The numpy.sinh()
function takes the following parameter values:
x
(required): This represents the input array.out
(optional): This represents the location where the result is stored.where
(optional): This is the condition over which the input is being broadcast. At a given location where this condition is True
, the resulting array will be set to the ufunc
result. Otherwise, the resulting array will retain its original value. This is optional.**kwargs
(optional): This represents other keyword arguments. This is optional.The numpy.sinh()
function returns the corresponding hyperbolic sine values of each element in a given array.
import numpy as np# creating an arrayx = np.array([30, 45, 60, 90, 180])# taking the hyperbolic sinemyarray = np.sinh(x)print(myarray)
numpy
module.x
, using the array()
method.np.sinh()
function on the array. The result is assigned to a variable, myarray
.myarray
variable.