diff --git a/lib/node_modules/@stdlib/math/base/special/erfinv/README.md b/lib/node_modules/@stdlib/math/base/special/erfinv/README.md index 2b3c8d74824a..9bb8c83c75a9 100644 --- a/lib/node_modules/@stdlib/math/base/special/erfinv/README.md +++ b/lib/node_modules/@stdlib/math/base/special/erfinv/README.md @@ -123,6 +123,94 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/erfinv.h" +``` + +#### stdlib_base_erfinv( x ) + +Evaluates the [inverse error function][inverse-error-function]. + +```c +double out = stdlib_base_erfinv( 0.5 ); +// returns ~0.4769 + +out = stdlib_base_erfinv( 0.8 ); +// returns ~0.9062 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_erfinv( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/erfinv.h" +#include +#include + +int main() { + const double x[] = { -1.0, -0.78, -0.56, -0.33, -0.11, 0.11, 0.33, 0.56, 0.78, 1.0 }; + double v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_erfinv( x[ i ] ); + printf( "x: %lf, erfinv(x): %lf\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + +