# atan() function in python by R4R Team

- atan() is python math function which determine the arc tangent of number in radians

Syntax-

math.atan(x)

- Here x should be a numeric value.
- it return the arc tangent of x in radians.

Example-

atan(1) will return 0.7853981633974483
atan(0.5) will 0.4636476090008061

program-

import math

print("atan(1) : ",math.atan(1))
print("atan(0.34) : ",math.atan(0.34))
print("atan(0.5) : ",math.atan(0.5))
print("atan(-0.49) : ",math.atan(-0.49))
print("atan(0) : ",math.atan(0))

output-

atan(1) : 0.7853981633974483
atan(0.34) : 0.3277385067805555
atan(0.5) : 0.4636476090008061
atan(-0.49) : -0.4556156532112245
atan(0) : 0.0

-If we want to print the arc tangent value of x in degree then-

program-

import math

#these value are in degrees
n=180/math.pi
print("atan(1) : ",math.atan(1)*n)
print("atan(0.34) : ",math.atan(0.34)*n)
print("atan(0.5) : ",math.atan(0.5)*n)
print("atan(-0.49) : ",math.atan(-0.49)*n)
print("atan(0) : ",math.atan(0)*n)

output-

atan(1) : 45.0
atan(0.34) : 18.778033222445544
atan(0.5) : 26.56505117707799
atan(-0.49) : -26.104854009099295
atan(0) : 0.0