Error functions

Description

Error function, complementary error function and their respective inverse

Usage

1
2
3
4
erf(x)
inverf(x)
erfc(x)
inverfc(x)

Arguments

x

A number, vector or matrix of values.

Details

In this package, these functions are used in other functions. They were implemented here to make the calculation easier to follow. The code from these function was borrowed from the example of the link{Normal} distribution.

Value

A number, vector or matrix of the same dimensions as x