Home >>Python math Module >Python math.atan() Method

# Python math.atan() Method

### Python math.atan() Method

Python math.atan() Method in python is used to get the arc tangent of a number as a value between -PI/2 and PI/2 radians and it accepts a number.

Syntax:
`math.atan(x)`

### Parameter Values

Parameter Description
x It is Require a number to find the arc tangent of a number and it returns error a TypeError
Here is an Example of Python math.atan() Method:
``````
import math
print (math.atan(0.12))
print (math.atan(32))
print (math.atan(-17))
```
```
Output:
0.11942892601833845
1.5395564933646284
-1.512040504079174
Example 2:
``````
import math
a = -1
print("atan(",a,") is = ", math.atan(a))
a = 0
print("atan(",a,") is = ", math.atan(a))
a = 0.198
print("atan(",a,") is = ", math.atan(a))
a = 1
print("atan(",a,") is = ", math.atan(a))
a = 985
print("atan(",a,") is = ", math.atan(a))
```
```
Output:
atan( -1 ) is = -0.7853981633974483
atan( 0 ) is = 0.0
atan( 0.198 ) is = 0.1954717453706343
atan( 1 ) is = 0.7853981633974483
atan( 985 ) is = 1.5697810987172953