diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 6917be2bd..9f505df3c 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -12,6 +12,7 @@ Anudeep Sanapala Athan Reines Brendan Graetz Bruno Fenzl +Bryan Elee Chinmay Joshi <86140365+JawHawk@users.noreply.github.com> Christopher Dambamuromo Dan Rose @@ -66,10 +67,12 @@ Shubham Mishra Snehil Shah <130062020+Snehil-Shah@users.noreply.github.com> Spandan Barve Stephannie Jiménez Gacha +Suraj kumar <125961509+kumarsuraj212003@users.noreply.github.com> Utkarsh Utkarsh Raj Varad Gupta Yernar Yergaziyev +naveen nishant-s7 <97207366+nishant-s7@users.noreply.github.com> orimiles5 <97595296+orimiles5@users.noreply.github.com> rei2hu diff --git a/base/special/acscd/README.md b/base/special/acscd/README.md index 2a8d43897..050bc5f3e 100644 --- a/base/special/acscd/README.md +++ b/base/special/acscd/README.md @@ -81,6 +81,94 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/acscd.h" +``` + +#### stdlib_base_acscd( x ) + +Computes the [arccosecant][arccosecant] (in degrees) of a double-precision floating-point number. + +```c +double out = stdlib_base_acscd( 1.0 ); +// returns 90.0 + +out = stdlib_base_acscd( 2.0 ); +// returns ~30.0 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_acscd( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/acscd.h" +#include + +int main( void ) { + const double x[] = { 1.0, 1.45, 1.89, 2.33, 2.78, 3.22, 3.66, 4.11, 4.55, 5.0 }; + + double v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_acscd( x[ i ] ); + printf( "acscd(%lf) = %lf\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + +