diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/README.md b/lib/node_modules/@stdlib/math/base/special/acsc/README.md index cfdb5ca58753..0a0a86991933 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/README.md +++ b/lib/node_modules/@stdlib/math/base/special/acsc/README.md @@ -75,6 +75,95 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/acsc.h" +``` + +#### stdlib_base_acsc( x ) + +Computes the [arccosecant][arccosecant] of a number (in radians). + +```c +double out = stdlib_base_acsc( 1.0 ); +// returns 1.57 + +out = stdlib_base_acsc( -3.141592653589793 ); // ~pi +// returns ~-0.32 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value (in radians). + +```c +double stdlib_base_acsc( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/acsc.h" +#include +#include + +int main() { + double x[] = { -1.0, -0.78, -0.56, -0.33, -0.11, 0.11, 0.33, 0.56, 0.78, 1.0 }; + double v; + int i; + + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_acsc( x[ i ] ); + printf( "acsc(%lf) = %lf\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + +