More hyperbolic functions not available in R.

coth(z)
csch(z)
sech(z)
acoth(z)
acsch(z)
asech(z)

Arguments

z

numeric or complex scalar or vector.

Details

The usual hyperbolic cotangens, cosecans, and secans functions and their inverses, computed through the other well known – in R – hyperbolic sine, cosine, and tangens functions.

Value

Result vector of numeric or complex values.

Note

These function names are available in Matlab, that is the reason they have been added to the `pracma' package.

See also

Trigonometric and hyperbolic functions in R.

Examples

coth(1+1i)      # 0.8680 - 0.2176i
#> [1] 0.8680141-0.2176216i
csch(1+1i)      # 0.3039 - 0.6215i
#> [1] 0.303931-0.621518i
sech(1+1i)      # 0.4983 - 0.5911i
#> [1] 0.498337-0.5910838i
acoth(1+1i)     # 0.4024 - 0.5536i
#> [1] 0.4023595-0.5535744i
acsch(1+1i)     # 0.5306 - 0.4523i
#> [1] 0.5306375-0.4522784i
asech(1+1i)     # 0.5306 - 1.1185i
#> [1] -0.5306375+1.118518i