Functions to compute the error function, complementary error function, and their inverses.
Usage
erf(x)
erfc(x)
erf_inv(p)
erfc_inv(p)
Arguments
- x
Input numeric value
- p
Probability value (0 <= p <= 1)
Value
A single numeric value with the computed error function, complementary error function, or their inverses.
Examples
# Error function
erf(0.5)
#> [1] 0.5204999
# Complementary error function
erfc(0.5)
#> [1] 0.4795001
# Inverse error function
erf_inv(0.5)
#> [1] 0.4769363
# Inverse complementary error function
erfc_inv(0.5)
#> [1] 0.4769363