diff --git a/lib/node_modules/@stdlib/math/base/special/cotd/README.md b/lib/node_modules/@stdlib/math/base/special/cotd/README.md index 50c14505a51..eb2a1098fdb 100644 --- a/lib/node_modules/@stdlib/math/base/special/cotd/README.md +++ b/lib/node_modules/@stdlib/math/base/special/cotd/README.md @@ -78,6 +78,94 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/cotd.h" +``` + +#### stdlib_base_cotd( x ) + +Evaluates the [cotangent][trigonometric-functions] of `x` (in degrees). + +```c +double out = stdlib_base_cotd( 0.0 ); +// returns Infinity + +out = stdlib_base_cotd( 60.0 ); +// returns ~0.58 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_cotd( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/cotd.h" +#include + +int main( void ) { + const double x[] = { 0.0, 30.0, 45.0, 60.0, 90.0 }; + + double y; + int i; + for ( i = 0; i < 5; i++ ) { + y = stdlib_base_cotd( x[ i ] ); + printf( "cotd(%lf) = %lf\n", x[ i ], y ); + } +} +``` + +
+ + + +
+ + +