diff --git a/base/special/asech/README.md b/base/special/asech/README.md index 9b3b6eadb..63710af40 100644 --- a/base/special/asech/README.md +++ b/base/special/asech/README.md @@ -81,6 +81,91 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/asech.h" +``` + +#### stdlib_base_asech( x ) + +Computes the [hyperbolic arcsecant][hyperbolic-arcsecant] of `x`. + +```c +double out = stdlib_base_asech( 1.0 ); +// returns 0.0 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_asech( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/asech.h" +#include + +int main( void ) { + const double x[] = { 0.0, 0.5, 1.0, 1.89, 2.33, 3.22, 3.67, 4.11, 4.56, 5.0 }; + + double v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_asech( x[ i ] ); + printf( "asech(%lf) = %lf\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + +