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 Inv

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.00
sub units 0.00
add a commercial licence to your cart
0
viewed 2644 times and licensed 37 times

Evaluates the inverse of 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 (2)
Contents hide toc

Interface

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

using namespace Maths::Special;

double errorFn_inv (double y)[inline]
Evaluates the inverse of the error function.
ExcelReal cc_specialErrorFn_inv (Real y)
This function is available as a Microsoft Excel add-in.

Function Documentation

Error Fn Inv Calculator
  
Add calculator to website or email
 
doubleerrorFn_invdoubley )[inline]
The inverse error function is defined as the function \mathrm{erf}^{-1}:(-1,1) \rightarrow \mathbb{R} which satisfies:

(1)
\displaystyle \left\{
\begin{array}{rcll}
\mathrm{erf}\left(\mathrm{erf}^{-1}(x)\right) &=& x, &\qquad \forall x \in (-1,1)\\
\mathrm{erf}^{-1}\left(\mathrm{erf}(x)\right) &=& x, &\qquad \forall x \in \mathbb{R}
\end{array}

where \displaystyle \mathrm{erf} is the error function. Some special values are:

(2)
\displaystyle \begin{array}{rcl}
\mathrm{erf}^{-1}(\pm 1) &=& \pm \infty \\
\\
\mathrm{erf}^{-1}(0) &=& 0.
\end{array}

The graph of this function is shown below.

1/InverseErf-378.gif
+
The following property also holds:

(3)
\displaystyle \mathrm{erf}^{-1}(x) = \mathrm{erfc}^{-1}(1 - x), \qquad \forall x \in (-1,1)

where \displaystyle \mathrm{erfc}^{-1} is the inverse of the complementary error function. Based on this last formula, you may notice how the output of the example code below is linked to the example output in the errorFnC_inv module.

References:
Mathworld, http://mathworld.wolfram.com/InverseErf.html
Example:
#include <codecogs/maths/special/errorfn_inv.h>
#include <stdio.h>
 
int main(  )
{
  // display the value of the function at important points
  printf("x = -1    y = %.15lf\n",   Maths::Special::errorFn_inv(-1.0));
  printf("x = 0     y = %.15lf\n",   Maths::Special::errorFn_inv( 0.0));
  printf("x = 1     y = %.15lf\n\n", Maths::Special::errorFn_inv( 1.0));
 
  // display several values of the function
  // at equally spaced abscissas with a step of 0.1
  for (double x = 0.1; x < 0.99; x += 0.1)
    printf("x = %.1lf   y = %.15lf\n", 
    x, Maths::Special::errorFn_inv(x));
 
  return 0;
}
Output:
x = -1    y = -1.#INF00000000000
x = 0     y = 0.000000000000000
x = 1     y = 1.#INF00000000000
 
x = 0.1   y = 0.088855990494258
x = 0.2   y = 0.179143454621292
x = 0.3   y = 0.272462714726755
x = 0.4   y = 0.370807158593558
x = 0.5   y = 0.476936276204470
x = 0.6   y = 0.595116081449995
x = 0.7   y = 0.732869077959217
x = 0.8   y = 0.906193802436823
x = 0.9   y = 1.163087153676674
Parameters:
ythe value at which to evaluate the function (-1 \leq y \leq 1)
Returns:
The inverse of the error function.
Authors:
Lucian Bentea (September 2006)
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: 18 Oct 07 @ 17:07     Page Rendered: 2009-01-05 22:49:31

Valid CSS!   Valid XHTML 1.0 Transitional