Learn R Programming

aspace (version 4.0.1)

sin_d: Compute sine with angle given in degrees

Description

Provides the functionality of sin, but for input angles measured in degrees (not radians).

Usage

sin_d(theta = 0)

Value

Returns a numeric value for the sine of the specified angular measurement

Arguments

theta

A numeric angular measurement in degrees from north.

Author

Tarmo K. Remmel

Details

Since the R default is to compute trigonometric functions on angular measurements stored in radians, this simple function performs the conversion from degrees, reducing the need to do so a priori, outside the function.

See Also

cos_d, tan_d, asin_d, acos_d, atan_d

Examples

Run this code
sin_d(theta = 90)

Run the code above in your browser using DataLab