These functions give the obvious trigonometric functions. They respectively compute the cosine, sine, tangent, arc-cosine, arc-sine, arc-tangent as in the base functions base::Trig(), but use input in degree instead of radian.

cos_deg(x)

sin_deg(x)

tan_deg(x)

acos_deg(x)

asin_deg(x)

atan_deg(x)

Arguments

x

Angle in degree

Details

The conversions between radian to degree is:

$$x*pi/180$$

Examples

# cosinus of an angle of 120 degree: cos_deg(120)
#> [1] -0.5
# should yield -0.5, as in the base version: cos(120*pi/180)
#> [1] -0.5