Numpy arcsinh()

This function is used to calculate the hyperbolic inverse sine of the array elements.

Syntax

snippet
numpy.arcsinh(array[,out] )

Parameters

  1. array: Array elements (in radians) whose hyperbolic inverse sine values are to be calculated.
  2. out: shape of the output array.

Return

An array containing hyperbolic inverse sine values are returned.

Example

snippet
import numpy as np
import math

arr = np.array([0, math.pi/4, 3*math.pi/2, math.pi/6])

print("Input Array:",arr)
print("tanh Array:",end=" ")

arcsinharr = np.arcsinh(arr)

print(arcsinharr)

Output:

Output
Input Array: [0. 0.78539816 4.71238898 0.52359878] tanh Array: [0. 0.72122549 2.25441459 0.50221899]
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +