Write a NumPy program to calculate hyperbolic sine, hyperbolic cosine, and hyperbolic tangent for all elements in a given array.
Sample Input: Input: Input: [-1., 0, 1.]
import numpy as np x = np.array([-1., 0, 1.]) print(np.sinh(x)) print(np.cosh(x)) print(np.tanh(x))
Sample Output:
[-1.17520119 0. 1.17520119] [1.54308063 1. 1.54308063] [-0.76159416 0. 0.76159416]
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer