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)
x | Angle in degree |
---|
The conversions between radian to degree is:
$$x*pi/180$$
# cosinus of an angle of 120 degree: cos_deg(120)#> [1] -0.5#> [1] -0.5