Numpy arctanh()

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

Syntax

snippet
numpy.arctanh(array[,out] )

Parameters

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

Return

An array containing hyperbolic inverse tangent values are returned.

Example

snippet
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:

Output
Input Array: [0. 0.2 0.5 0.3] arctanh Array: [0. 0.20273255 0.54930614 0.3095196 ]
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +