# compute-erfinv

Inverse error function.

## Stats

StarsIssuesVersionUpdatedCreatedSize
compute-erfinv
403.0.17 years ago9 years ago

erfinv
!NPM versionnpm-imagenpm-url !Build Statustravis-imagetravis-url !Coverage Statuscoveralls-imagecoveralls-url !Dependenciesdependencies-imagedependencies-url
Inverse error function.

The inverse error function is defined in terms of the Maclaurin series
\operatorname{erf}^{-1}(z)=\sum_{k=0}^\infty\frac{c_k}{2k+1}\left (\frac{\sqrt{\pi}}{2}z\right )^{2k+1}" data-equation="eq:inverse_error_function"> <img src="https://cdn.rawgit.com/compute-io/erfinv/47176c1d9a8c9694cb7ef83c21c18bf2a89af333/docs/img/eqn.svg" alt="Equation of the inverse error function."> <br>

where c_0 = 1 and
c_k=\sum_{m=0}^{k-1}\frac{c_m c_{k-1-m}}{(m+1)(2m+1)} = \left\{1,1,\frac{7}{6},\frac{127}{90},\frac{4369}{2520},\frac{34807}{16200},\ldots\right\}" data-equation="eq:inverse_error_function_series_coefficients"> <img src="https://cdn.rawgit.com/compute-io/erfinv/47176c1d9a8c9694cb7ef83c21c18bf2a89af333/docs/img/eqn2.svg" alt="Equation of the coefficients."> <br>

## Tests

### Unit

Unit tests use the Mocha test framework with Chai assertions. To run the tests, execute the following command in the top-level application directory:
$make test All new feature development should have corresponding unit tests to validate correct functionality. ### Test Coverage This repository uses Istanbul as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory: $ make test-cov

Istanbul creates a ./reports/coverage directory. To access an HTML version of the report,
\$ make view-cov