radians()radians()

使用公式 radians = (PI / 180 ) * angle_in_degrees,将以度表示的角度值转换为以弧度表示的值Converts angle value in degrees into value in radians, using formula radians = (PI / 180 ) * angle_in_degrees

语法Syntax

radians(a)radians(a)

参数Arguments

  • a:以度表示的角度(实数)。a: Angle in degrees (a real number).

返回Returns

  • 指定角度(度)的相应角度(弧度)。The corresponding angle in radians for an angle specified in degrees.

示例Examples

print radians0 = radians(90), radians1 = radians(180), radians2 = radians(360) 

radians0radians0 radians1radians1 radians2radians2
1.57079632679491.5707963267949 3.141592653589793.14159265358979 6.283185307179596.28318530717959