erfcl - Linux
Overview
erfcl calculates the complementary error function. It is used to calculate the probability of an event that is outside of a certain range.
Syntax
erfcl <x>
Where:
<x>
is the input value.
Options/Flags
None
Examples
# Calculate the complementary error function of 1.5
erfcl 1.5
0.006246049574356399
# Calculate the complementary error function of -3.2
erfcl -3.2
1.9999999999999992
Common Issues
- If
<x>
is complex, erfcl will return a complex number.
Integration
erfcl can be used with other commands to calculate the probability of complex events. For example, the following command calculates the probability of an event that is between 1 and 3:
erfcl(1) - erfcl(3)
Related Commands
- erf: Calculates the error function.
- erfcx: Calculates the scaled complementary error function.