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

Valid RSS

MathsSpecial

error Fn

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

The Error Function.

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

Interface

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

using namespace Maths::Special;

double errorFn (double x)
The Error Function.

Function Documentation

Error Fn Calculator
  
Add calculator to website or email
 
doubleerrorFndoublex )
The Error Functionis defined by equation
erf(x) \equiv \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} dt
and has the shape
\graph  x=-2.9:2.9
Warning:
This approximation of erf is only valid between -3 and 3

References:

Example 1:
#include <codecogs/maths/special/errorfn.h>
#include <stdio.h>
using namespace Maths::Special;
int main(  )
{
  double x = 0.5;
  printf("\n errorFn(%f) = %f", x, errorFn(x));
  return getchar();
}
Output:
errorFn(0.500000) = 0.520500
Parameters:
xthe upper limit of the integral (-3<x<3)
Returns:
the value of the Error Function evaluated at the given abscissa
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:01     Page Rendered: 2010-03-10 21:36:06

Valid CSS!   Valid XHTML 1.0 Transitional