Home >>Python math Module >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 | Description |
---|---|
x | It is Require a number to find the arc tangent of a number and it returns error a TypeError |
import math
print (math.atan(0.12))
print (math.atan(32))
print (math.atan(-17))
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))