Learn R Programming

dual (version 0.0.5)

Error: Special Functions of Mathematics

Description

Special mathematical functions related to the error function.

The function erfc(x) is a variant of the cumulative normal (or Gaussian) distribution funciton.

The functions erfinv(x) and erfcinv(x) respectively implement the inverse functions of erf(x) and erfc(x).

Usage

erf(x)

# S4 method for dual erf(x)

erfinv(x)

# S4 method for dual erfinv(x)

erfc(x)

# S4 method for dual erfc(x)

erfcinv(x)

# S4 method for dual erfcinv(x)

Value

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

Arguments

x

dual object.

Examples

Run this code
x <- dual(0.5, 1)
erf(x)
erfc(x)
erfinv(x)
erfcinv(x)

Run the code above in your browser using DataLab