Javatpoint Logo
Javatpoint Logo

Numpy tanh()

This function is used to calculate the hyperbolic tangent for all the elements of the array passed as the argument.

Syntax

Parameters

  1. array: Array elements whose tangent values are to be calculated (in radians).
  2. 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()




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA