Degrees-to-Radians-to-Degrees {REdaS}R Documentation

Conversion between Radians and Degrees

Description

Converts radians to degrees and vice versa.

Usage

deg2rad(d)

rad2deg(r)

Arguments

d

degrees

r

radians

Details

Since \pi\,\mathrm{rad}=180^{\circ}, degrees (d) can be converted to radians (r) using r=d\cdot{}\pi/180 and the conversion of radians to degrees is d=r\cdot{}180/\pi.

Author(s)

Marco J. Maier

See Also

see Trigonometric Functions, Hyperbolic Functions, Constants in R

Examples

# pi is available as a constant
pi

# 180° are pi radians
deg2rad(180)

# 2 * pi radians are 360°
rad2deg(2 * pi)

[Package REdaS version 0.9.4 Index]