diff --git a/lib/node_modules/@stdlib/math/base/special/binet/README.md b/lib/node_modules/@stdlib/math/base/special/binet/README.md index d46f1c18d2b3..9178c104b0c1 100644 --- a/lib/node_modules/@stdlib/math/base/special/binet/README.md +++ b/lib/node_modules/@stdlib/math/base/special/binet/README.md @@ -134,6 +134,94 @@ for ( i = 0; i < 79; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/binet.h" +``` + +#### stdlib_base_binet( x ) + +Evaluates [Binet's formula][fibonacci-number] extended to real numbers. + +```c +double out = stdlib_base_binet( 0.0 ); +// returns 0.0 + +out = stdlib_base_binet( 1.0 ); +// returns 1.0 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_binet( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/binet.h" +#include + +int main( void ) { + const double x[] = { 0.0, 1.0, 2.0, 3.0, 4.0 }; + + double y; + int i; + for ( i = 0; i < 5; i++ ) { + y = stdlib_base_binet( x[ i ] ); + printf( "binet(%lf) = %lf\n", x[ i ], y ); + } +} +``` + +
+ + + +
+ + +