Conversion between Radians and Degrees

Share:

Description

Converts radians to degrees and vice versa.

Usage

1
2
3

Arguments

d

degrees

r

radians

Details

Since π rad = 180°, degrees (d) can be converted to radians (r) using r = d · π ∕ 180 and the conversion of radians to degrees is d = r · 180 ∕ π.

Author(s)

Marco J. Maier

See Also

see Trigonometric Functions, Hyperbolic Functions, Constants in R

Examples

1
2
3
4
5
6
7
8
# pi is available as a constant
pi

# 180° are pi radians
deg2rad(180)

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