diff --git a/lib/node_modules/@stdlib/math/base/special/riemann-zeta/README.md b/lib/node_modules/@stdlib/math/base/special/riemann-zeta/README.md index 25c5c7cfdb2f..f0b1b085027a 100644 --- a/lib/node_modules/@stdlib/math/base/special/riemann-zeta/README.md +++ b/lib/node_modules/@stdlib/math/base/special/riemann-zeta/README.md @@ -103,6 +103,91 @@ for ( i = 0; i < s.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/riemann_zeta.h" +``` + +#### stdlib_base_zeta( s ) + +Evaluates the [Riemann zeta][zeta-function] function as a function of a real variable `s` (i.e., `t = 0`). + +```c +double out = stdlib_base_zeta( 1.1 ); +// returns ~10.584 +``` + +The function accepts the following arguments: + +- **s**: `[in] double` input value. + +```c +double stdlib_base_zeta( const double s ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/riemann_zeta.h" +#include + +int main( void ) { + const double s[] = { -50.0, -38.9, -27.8, -16.7, -5.6, 5.6, 16.7, 27.8, 38.9, 50.0 }; + + double v; + int i; + for ( i = 0; i < 1; i++ ) { + v = stdlib_base_zeta( s[ i ] ); + printf( "zeta(%lf) = %lf\n", s[ i ], v ); + } +} +``` + +
+ + + +
+ + +