Home » numpy.tanh() in Python

numpy.tanh() in Python

by Online Tutorials Library

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()

You may also like