Learn R Programming

boostmath (version 1.0.0)

error_functions: Error Functions and Inverses

Description

Functions to compute the error function, complementary error function, and their inverses.

Usage

erf(x)

erfc(x)

erf_inv(p)

erfc_inv(p)

Value

A single numeric value with the computed error function, complementary error function, or their inverses.

Arguments

x

Input numeric value

p

Probability value (0 <= p <= 1)

See Also

Boost Documentation for more details

Examples

Run this code
# Error function
erf(0.5)
# Complementary error function
erfc(0.5)
# Inverse error function
erf_inv(0.5)
# Inverse complementary error function
erfc_inv(0.5)

Run the code above in your browser using DataLab