erf: Error Function

View source: R/S02_Math.R

erfR Documentation

Error Function

Description

Calculates the error function.

Usage

erf(x)

Arguments

x

A vector of values on the real number line.

Value

A vector of transformed values based on the error function.

Examples

plot(c(-2, 2), c(-1, 1), type = "n", xlab = "x", ylab = "erf(x)")
x <- seq(-2, 2, length = 100)
abline(h = c(-1, 1), col = "grey")
lines(x, erf(x))

rettopnivek/arfpam documentation built on Oct. 20, 2024, 7:24 p.m.