CodeCogs - A iteractive open source Numerical library in C/C++, with wrappers for .NET and Excel Welcome... Login
Site Map
shopping cart
OSX compatibleWindows compatibleLinux compatible
Search CodeCogs
Numerical Components
Worked Examples

Valid RSS

mathsspecial

error Fn

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

The Error Function.

Other modules that are used by this module. We add these to the cart for you whenever you add this module, unless you already own enough licences for them. Click for details
Controller: CodeCogs    Contact Controller

+View other versions (5)
Contents hide toc

Interface

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

using namespace Maths::Special;

double errorFn (double x)
The Error Function.
ExcelReal cc_specialErrorFn (Real x)
This function is available as a Microsoft Excel add-in.

Function Documentation

Error Fn Calculator
  
Add calculator to website or email
 
doubleerrorFndoublex )
The Error Functionis defined by equation
(1)
\displaystyle erf(x) \equiv \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} dt
and has the shape
\graph  x=-3:3

Warnings:
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:
#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:

You do not own any licences for this module.
To view or download source code you must get a GPL licence or buy a commercial licence.

buy now     get GPL     add to cart

For advanced download and development options Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 26 Jan 08 @ 22:33     Page Rendered: 2009-01-05 22:49:36

Valid CSS!   Valid XHTML 1.0 Transitional