CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

MathsSpecial

error Fn C

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.30
sub units 2.94
add a commercial licence to your cart
0
viewed 1663 times and licensed 16 times

The Complementary Error Function.

Further Info Controller: CodeCogs  Contact Controller
+View other versions (2)
Contents hide toc
buy now     get GPL     add to cart

Interface

#include <codecogs/maths/special/errorfnc.h>

using namespace Maths::Special;

double errorFnC (double x)
The Complementary Error Function.

Function Documentation

Error Fn C Calculator
  
Add calculator to website or email
 
doubleerrorFnCdoublex )
The complementary error function, usually denoted as erfc is directly related to the Error Function by:
errorFnC(x) = 1 -  errorFn(x)
Thus
erfc(x) = 1 - erf(x) = \frac{2}{\sqrt \pi} \int_x^\infty e^{-t^2} \: dt
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.479500
References:
http://mathworld.wolfram.com/Erfc.html
Parameters:
xis the lower limit of the integration
Returns:
the Complementary Error Function
Authors:
Vince Cole (March 2005)
Source Code:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 25 Oct 09 @ 15:18     Page Rendered: 2010-03-11 21:43:11

Valid CSS!   Valid XHTML 1.0 Transitional