diff --git a/lib/node_modules/@stdlib/math/base/special/hacoversin/README.md b/lib/node_modules/@stdlib/math/base/special/hacoversin/README.md index 6013e5fc04b9..7f8b05bb16b7 100644 --- a/lib/node_modules/@stdlib/math/base/special/hacoversin/README.md +++ b/lib/node_modules/@stdlib/math/base/special/hacoversin/README.md @@ -93,6 +93,94 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/hacoversin.h" +``` + +#### stdlib_base_hacoversin( x ) + +Computes the half-value [coversed sine][coversed-sine] (in radians). + +```c +double out = stdlib_base_hacoversin( 0.0 ); +// returns 0.5 + +out = stdlib_base_hacoversin( 3.141592653589793 / 2.0 ); +// returns 0.0 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_hacoversin( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/hacoversin.h" +#include + +int main( void ) { + const double x[] = { 0.0, 0.523, 0.785, 1.047, 3.14 }; + + double y; + int i; + for ( i = 0; i < 5; i++ ) { + y = stdlib_base_hacoversin( x[ i ] ); + printf( "hacoversin(%lf) = %lf\n", x[ i ], y ); + } +} +``` + +
+ + + +
+ + +