diff --git a/lib/node_modules/@stdlib/math/base/special/gammasgn/README.md b/lib/node_modules/@stdlib/math/base/special/gammasgn/README.md index 22e8e55c0ae..18c63c01be7 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammasgn/README.md +++ b/lib/node_modules/@stdlib/math/base/special/gammasgn/README.md @@ -107,6 +107,96 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/gammasgn.h" +``` + +#### stdlib_base_gammasgn( x ) + +Returns the sign of the [gamma-function][@stdlib/math/base/special/gamma]. + +```c +double out = stdlib_base_gammasgn( 1.0 ); +// returns 1.0 + +out = stdlib_base_gammasgn( -2.5 ); +// returns -1.0 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_gammasgn( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/gammasgn.h" +#include +#include + +int main( void ) { + double x; + double v; + int i; + + for ( i = 0; i < 100; i++ ) { + x = ( (double)rand() / (double)RAND_MAX ) * 100.0; + v = stdlib_base_gammasgn( x ); + printf( "gammasgn%lf = %lf\n", x, v ); + } +} +``` + +
+ + + +
+ + +