diff --git a/lib/node_modules/@stdlib/math/base/special/binomcoefln/README.md b/lib/node_modules/@stdlib/math/base/special/binomcoefln/README.md index bcc823735951..7b2609456a14 100644 --- a/lib/node_modules/@stdlib/math/base/special/binomcoefln/README.md +++ b/lib/node_modules/@stdlib/math/base/special/binomcoefln/README.md @@ -83,7 +83,7 @@ var binomcoefln = require( '@stdlib/math/base/special/binomcoefln' ); #### binomcoefln( n, k ) -Evaluates the [binomial coefficient][binomial-coefficient] of two integers `n` and `k`. +Evaluates the natural logarithm of the [binomial coefficient][binomial-coefficient] of two integers `n` and `k`. ```javascript var v = binomcoefln( 8, 2 ); @@ -158,6 +158,95 @@ for ( i = 0; i < 100; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/binomcoefln.h" +``` + +#### stdlib_base_binomcoefln( n, k ) + +Evaluates the natural logarithm of the [binomial coefficient][binomial-coefficient] of two integers `n` and `k`. + +```c +double v = stdlib_base_binomcoefln( 8, 2 ); +// returns ~3.332 +``` + +The function accepts the following arguments: + +- **n**: `[in] int64_t` input value. +- **k**: `[in] int64_t` input value. + +```c +double stdlib_base_binomcoefln( const int64_t n, const int64_t k ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/binomcoefln.h" +#include +#include +#include + +int main( void ) { + const int64_t a[] = { 24, 32, 48, 116, 33 }; + const int64_t b[] = { 12, 6, 15, 52, 22 }; + + double out; + int i; + for ( i = 0; i < 5; i++ ) { + out = stdlib_base_binomcoef( a[ i ], b[ i ] ); + printf( "binomcoefln(%" PRId64 ", %" PRId64 ") = %lf\n", a[ i ], b[ i ], out ); + } +} +``` + +
+ + + +
+ + +