Trig {dual} | R Documentation |
Trigonometric Functions
Description
These functions give the obvious trigonometric functions. They respectively compute the cosine, sine, tangent, arc-cosine, arc-sine, arc-tangent, and the two-argument arc-tangent.
cospi(x)
, sinpi(x)
, and tanpi(x)
, compute
cos(pi*x)
, sin(pi*x)
, and tan(pi*x)
.
Usage
## S4 method for signature 'dual'
cos(x)
## S4 method for signature 'dual'
sin(x)
## S4 method for signature 'dual'
tan(x)
## S4 method for signature 'dual'
acos(x)
## S4 method for signature 'dual'
asin(x)
## S4 method for signature 'dual'
atan(x)
## S4 method for signature 'dual,numeric'
atan2(y, x)
## S4 method for signature 'numeric,dual'
atan2(y, x)
## S4 method for signature 'dual,dual'
atan2(y, x)
## S4 method for signature 'dual'
cospi(x)
## S4 method for signature 'dual'
sinpi(x)
## S4 method for signature 'dual'
tanpi(x)
Arguments
x |
dual object or numeric value. |
y |
dual object or numeric value. |
Value
A dual object containing the transformed values according to the chosen function.
Examples
x <- dual(1, 1:0)
y <- dual(1, 0:1)
cos(x)
sin(x)
tan(x)
acos(x - 0.5)
asin(x - 0.5)
atan(x - 0.5)
atan2(x, y)
atan2(2.4, y)
atan2(x, 1.2)
cospi(1.2 * x)
sinpi(3.4 * x)
tanpi(5.6 * x)
[Package dual version 0.0.5 Index]