otp.math.radians#
- radians(value)#
Returns the corresponding angle, in radians, for
valuespecified in degrees.Examples
>>> data = otp.Tick(A=1) >>> data['RADIANS'] = otp.math.radians(45).round(4) # should return pi/4 ~ 0.7854 >>> otp.run(data) Time A RADIANS 0 2003-12-01 1 0.7854
See also
RADIANS OneTick function