diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index a7dcbe1..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-03-01T03:50:37.427Z diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 6a1c080..ed0c73e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -5,6 +5,7 @@ Aditya Sapra <110766802+adityacodes30@users.noreply.github.com> AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com> Ali Salesi +Aman Bhansali <92033532+aman-095@users.noreply.github.com> Amit Jimiwal Athan Reines Brendan Graetz @@ -46,6 +47,7 @@ Robert Gislason Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com> Rutam <138517416+performant23@users.noreply.github.com> Ryan Seal +Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com> Seyyed Parsa Neshaei Shraddheya Shendre Shubham @@ -55,3 +57,4 @@ Stephannie Jiménez Gacha Yernar Yergaziyev orimiles5 <97595296+orimiles5@users.noreply.github.com> rei2hu +utkarsh_raj <49344502+rajutkarsh07@users.noreply.github.com> diff --git a/README.md b/README.md index d10fd49..1e79f6d 100644 --- a/README.md +++ b/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. @@ -138,6 +138,91 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/acovercos.h" +``` + +#### stdlib_base_acovercos( x ) + +Computes the [inverse coversed cosine][inverse-coversed-cosine] of a double-precision floating-point number. + +```c +double out = stdlib_base_acovercos( -3.141592653589793/2.0 ); +// returns ~-0.6075 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_acovercos( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/acovercos.h" +#include + +int main( void ) { + const double x[] = { -2.0, -1.80, -1.78, -1.67, -0.56, -0.27, -1.67, -0.78, -1.89, 0.0 }; + + double v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_acovercos( x[ i ] ); + printf( "acovercos(%lf) = %lf\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + +