Learn R Programming

dual (version 0.0.5)

Hyperbolic: Hyperbolic Functions

Description

These functions provide the obvious hyperbolic functions. They respectively compute the hyperbolic cosine, sine, tangent, and their inverses, arc-cosine, arc-sine, arc-tangent.

Usage

# S4 method for dual
cosh(x)

# S4 method for dual sinh(x)

# S4 method for dual tanh(x)

# S4 method for dual acosh(x)

# S4 method for dual asinh(x)

# S4 method for dual atanh(x)

Value

A dual object containing the transformed values according to the chosen function.

Arguments

x

a dual object

Examples

Run this code
x <- dual(0.5, 1)
cosh(x)
sinh(x)
tanh(x)
acosh(1 + x)
asinh(x)
atanh(x)

Run the code above in your browser using DataLab