I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 0.30
sub units 0.50
+
0
MathsSpecial

error Fn

viewed 2306 times and licensed 166 times
The Error Function.
Controller: CodeCogs

get GPL add to cart

Dependents

Info

Interface

C++

ErrorFn

 
doubleerrorFndoublex )
The Error Functionis defined by equation and has the shape
There is an error with your graph parameters for errorFn with options x=-2.9:2.9

Error Message:Function errorFn failed. Ensure that: Invalid C++

Warning

This approximation of erf is only valid between -3 and 3

References:

  • Eric W. Weisstein. "Erf." From MathWorld--A Wolfram Web Resource
  • http://mathworld.wolfram.com/Erf.html

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

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

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