Numpy arctan() method

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

Syntax

Parameters

  1. array: these are the array elements of which, the inverse tangent values are to be calculated.
  2. Out: It is the shape of the output array.

Return

It returns an array containing the inverse tangent values for all the array elements, x.

Example

Output:

Input array : 
 [0, 0.3, -1]

Inverse tan values : 
 [ 0.          0.29145679 -0.78539816]

Next TopicNumpy degrees()




Latest Courses