cos_deg: Trigonometric Functions (degree)

Description Usage Arguments Details Examples

View source: R/0-Functions.R

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

x

Angle in degree

Details

The conversions between radian to degree is:

x*pi/180

Examples

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

VEZY/DynACof documentation built on Feb. 3, 2021, 8:52 p.m.