diff --git a/base/special/acoversin/README.md b/base/special/acoversin/README.md index 785c60fc4..21dcf8ed5 100644 --- a/base/special/acoversin/README.md +++ b/base/special/acoversin/README.md @@ -2,7 +2,7 @@ @license Apache-2.0 -Copyright (c) 2018 The Stdlib Authors. +Copyright (c) 2024 The Stdlib Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -105,6 +105,91 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/acoversin.h" +``` + +#### stdlib_base_acoversin( x ) + +Computes the [inverse coversed sine][inverse-coversed-sine] of a double-precision floating-point number (in radians). + +```c +double out = stdlib_base_acoversin( 3.141592653589793/2.0 ); +// returns ~-0.6075 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_acoversin( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/acoversin.h" +#include + +int main( void ) { + const double x[] = { -5.0, -3.89, -2.78, -1.67, -0.56, 0.56, 1.67, 2.78, 3.89, 5.0 }; + + double v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_acoversin( x[ i ] ); + printf( "acoversin(%lf) = %lf\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + +