radians function - python math module

The radians function in python math module converts the given angular value of degrees into radians. One radian is about 57.3°.

Math Updated 25 Sep 2016 1 min read

Method name

radians(aDegrees_in)

Method overview

Converts the angular value specified in degrees into radians. One radian is about 57.3°.

Parameters

aDegrees_in : The angular value in degrees which is to be converted into radians

Return value

Angular value in radians that corresponds to specified degrees

Example

##

python
import math

AcuteAngle      = round(math.radians(45), 4)  #rounded to 4 digits precision

ObtuseAngle     = round(math.radians(135), 4) #rounded to 4 digits precision

print("Acute angle 45 degrees in radians: {}".format(AcuteAngle))

print("Obtuse angle 135 degrees in radians: {}".format(ObtuseAngle))

Output

Output
Acute angle 45 degrees in radians: 0.7854

Obtuse angle 135 degrees in radians: 2.3562