This function is used to calculate the hyperbolic inverse tangent of the array elements.
numpy.arctanh(array[,out] )
An array containing hyperbolic inverse tangent values are returned.
import numpy as np import math arr = np.array([0,0.2, 0.5, 0.3]) print("Input Array:",arr) print("arctanh Array:",end=" ") arctanharr = np.arctanh(arr) print(arctanharr)
Output: