diff --git a/lib/node_modules/@stdlib/math/base/special/betaln/README.md b/lib/node_modules/@stdlib/math/base/special/betaln/README.md index 031693313a9..6ea15f960c5 100644 --- a/lib/node_modules/@stdlib/math/base/special/betaln/README.md +++ b/lib/node_modules/@stdlib/math/base/special/betaln/README.md @@ -113,6 +113,93 @@ for ( x = 0; x < 10; x++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/betaln.h" +``` + +#### stdlib_base_betaln( x, y ) + +Evaluates the the [natural logarithm][natural-logarithm] of the [beta function][beta-function]. + +```c +double v = stdlib_base_betaln( 5.0, 0.2 ); +// returns ~1.218 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. +- **y**: `[in] double` input value. + +```c +double stdlib_base_betaln( const double x, const double y ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/betaln.h" +#include + +int main( void ) { + const double x[] = { 24.0, 32.0, 48.0, 116.0, 33.0 }; + const double y[] = { 12.0, 6.0, 15.0, 52.0, 22.0 }; + + double out; + int i; + for ( i = 0; i < 5; i++ ) { + out = stdlib_base_betaln( x[ i ], y[ i ] ); + printf( "betaln(%lf, %lf) = %lf\n", x[ i ], y[ i ], out ); + } +} +``` + +
+ + + +
+ + +