diff --git a/lib/node_modules/@stdlib/math/base/special/dirichlet-eta/README.md b/lib/node_modules/@stdlib/math/base/special/dirichlet-eta/README.md index 6598538c881e..fa72b8c599ad 100644 --- a/lib/node_modules/@stdlib/math/base/special/dirichlet-eta/README.md +++ b/lib/node_modules/@stdlib/math/base/special/dirichlet-eta/README.md @@ -72,7 +72,7 @@ var eta = require( '@stdlib/math/base/special/dirichlet-eta' ); #### eta( s ) -Evaluates the [Dirichlet eta][eta-function] function as a function of a real variable `s`. +Evaluates the Dirichlet eta function for a double-precision floating-point number `s`. ```javascript var v = eta( 0.0 ); // Abel sum of 1-1+1-1+... @@ -117,6 +117,91 @@ for ( i = 0; i < s.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/dirichlet_eta.h" +``` + +#### stdlib_base_eta( s ) + +Evaluates the Dirichlet eta function for a double-precision floating-point number `s`. + +```c +double y = stdlib_base_eta( 0.0 ); +// returns 0.5 +``` + +The function accepts the following arguments: + +- **s**: `[in] double` input value. + +```c +double stdlib_base_eta( const double s ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/dirichlet_eta.h" +#include + +int main( void ) { + const double x[] = { 45.0, 90.0, 0.0, 0.0 / 0.0 }; + + double y; + int i; + for ( i = 0; i < 4; i++ ) { + y = stdlib_base_eta( x[ i ] ); + printf( "η(%lf) = %lf\n", x[ i ], y ); + } +} +``` + +
+ + + +
+ + +