This function is used to calculate the inverse tangent of the array elements.
numpy.arcttan(array, out)
It returns an array containing the inverse tangent values for all the array elements, x.
import numpy as np arr = [0, 0.3, -1] print ("Input array : \n", arr) arctan_val = np.arctan(arr) print ("\nInverse tan values : \n", arctan_val)
Output: