74
Numpy tanh()
This function is used to calculate the hyperbolic tangent for all the elements of the array passed as the argument.
Syntax
Parameters
- array: Array elements whose tangent values are to be calculated (in radians).
- out: shape of the output array.
Return
An array with trigonometric tangent sins are returned.
Example
Output:
Input Array: [0. 0.78539816 4.71238898 0.52359878] tanh Array: [0. 0.6557942 0.99983861 0.48047278]
Next TopicNumpy trunc()