viewed 1648 times and licensed 15 times
The Complementary Error Function.
Controller: CodeCogs
View other versions (2)
Contents  |
|
Interface
#include <codecogs/maths/special/errorfnc.h>
using namespace Maths::Special;
| double | errorFnC (double x) The Complementary Error Function. |
 | Real | cc_specialErrorFnC (Real x) This function is available as a Microsoft Excel add-in. |
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:
#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
Parameters:
| x | is the lower limit of the integration |
Returns:
- the Complementary Error Function
References:
- http://mathworld.wolfram.com/Erfc.html
Authors:
- Vince Cole (March 2005)
Page Comments
You must login to leave a messge
Last Modified: 18 Oct 07 @ 17:07 Page Rendered: 2009-01-05 22:49:36