FUNCTION
errorFnC
The Complementary Error Function.
You're viewing an older version of this page (#1176). View the current version.
Interface
#include <codecogs/maths/special/errorfnc.h>
using namespace Maths::Special;
The complementary error function, usually denoted as erfc is directly related to the Error Function by:
errorFnC(x) = 1 - errorFn(x)Thus
(1)
It therefore has the following shape: \graph x=-2.9:2.9
Example 1
#include <codecogs/maths/special/errorfnc.h>
#include <stdio.h>
using namespace Maths::Special;
int main()
{
double x = 0.5;
printf("\n errorFnC(%f) = %f", x, errorFnC(x));
}Output:
errorFn(0.500000) = 0.479500Parameters
x
is the lower limit of the integration
Returns
the Complementary Error Function
References
Interactive Calculator
x
Result
Computing…
Set a range above first to export a graph.
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.