Learn R Programming

aspace (version 0.1)

atan.d: Compute inverse tangent with angle given in degrees

Description

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

Usage

atan.d(theta = 0)

Arguments

theta
A numeric angular measurement in degrees from north.

Value

  • Returns a numeric value for the inverse tangent of the specified angular measurement.

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

sin.d, cos.d, tan.d, asin.d, acos.d

Examples

Run this code
atan.d(theta = 90)

Run the code above in your browser using DataLab