trigonometric.RdMore trigonometric functions not available in R.
cot(z)
csc(z)
sec(z)
acot(z)
acsc(z)
asec(z)The usual trigonometric cotangens, cosecans, and secans functions and their inverses, computed through the other well known – in R – sine, cosine, and tangens functions.
Result vector of numeric or complex values.
These function names are available in Matlab, that is the reason they have been added to the `pracma' package.
Trigonometric and hyperbolic functions in R.
cot(1+1i) # 0.2176 - 0.8680i
#> [1] 0.2176216-0.8680141i
csc(1+1i) # 0.6215 - 0.3039i
#> [1] 0.621518-0.303931i
sec(1+1i) # 0.4983 + 0.5911i
#> [1] 0.498337+0.5910838i
acot(1+1i) # 0.5536 - 0.4024i
#> [1] 0.5535744-0.4023595i
acsc(1+1i) # 0.4523 - 0.5306i
#> [1] 0.4522784-0.5306375i
asec(1+1i) # 1.1185 + 0.5306i
#> [1] 1.118518+0.5306375i