diff --git a/lib/node_modules/@stdlib/math/base/special/beta/README.md b/lib/node_modules/@stdlib/math/base/special/beta/README.md index 52ae86007f26..4fce5f227d44 100644 --- a/lib/node_modules/@stdlib/math/base/special/beta/README.md +++ b/lib/node_modules/@stdlib/math/base/special/beta/README.md @@ -113,6 +113,99 @@ for ( x = 0; x < 10; x++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/beta.h" +``` + +#### stdlib_base_beta( a, b ) + +Evaluates the [beta function][beta-function]. + +```c +double out = stdlib_base_beta( 1.0, 1,0 ); +// returns 1.0 + +out = stdlib_base_beta( 5.0, 0.2); +// returns ~3.382 +``` + +The function accepts the following arguments: + +- **a**: `[in] double` input value. +- **b**: `[in] double` input value. + +```c +double stdlib_base_beta ( const double a, const double b ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/beta.h" +#include + +int main( void ) { + const double x[] = { 1.0, 3.0, 5.0, 8.0, 10.0 }; + const double y[] = { 2.0, 4.0, 7.0, 9.0, 10.0 }; + + double out; + int i; + int j; + for ( i = 0; i < 5; i++ ) { + for ( j = 0; j < 5; j++ ){ + out = stdlib_base_beta( x[ i ], y[ j ] ); + printf ( "x: %lf, y: %lf, out: %lf\n", x[ i ], y[ j ], out ); + } + } +} +``` + +
+ + + +
+ + +