viewed 1663 times and licensed 16 times
The Complementary Error Function.
View other versions (2)
Contents  |
|
Interface
#include <codecogs/maths/special/errorfnc.h>
using namespace Maths::Special;
| double | errorFnC (double x) The Complementary Error Function. |
Function Documentation
The complementary error function, usually denoted as
erfc is directly related to the Error Function by:
errorFnC(x) = 1 - errorFn(x)
Thus
It therefore has the following shape:
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.479500
References:
- http://mathworld.wolfram.com/Erfc.html
Parameters:
| x | is the lower limit of the integration |
Returns:
- the Complementary Error Function
Authors:
- Vince Cole (March 2005)
Page Comments
You must login to leave a messge
Last Modified: 25 Oct 09 @ 15:18 Page Rendered: 2010-03-11 21:43:11