From e5624845492dedff90a591295d8f22e425389910 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Mar 2024 17:06:42 +0000 Subject: [PATCH] Auto-generated commit --- base/special/acoversin/README.md | 87 ++++++++- .../acoversin/benchmark/benchmark.native.js | 60 +++++++ .../acoversin/benchmark/c/native/Makefile | 146 +++++++++++++++ .../acoversin/benchmark/c/native/benchmark.c | 136 ++++++++++++++ base/special/acoversin/binding.gyp | 170 ++++++++++++++++++ base/special/acoversin/examples/c/Makefile | 146 +++++++++++++++ base/special/acoversin/examples/c/example.c | 31 ++++ base/special/acoversin/include.gypi | 53 ++++++ .../stdlib/math/base/special/acoversin.h | 38 ++++ base/special/acoversin/lib/native.js | 62 +++++++ base/special/acoversin/manifest.json | 72 ++++++++ base/special/acoversin/src/Makefile | 70 ++++++++ base/special/acoversin/src/addon.c | 23 +++ base/special/acoversin/src/main.c | 34 ++++ base/special/acoversin/test/test.native.js | 126 +++++++++++++ 15 files changed, 1253 insertions(+), 1 deletion(-) create mode 100644 base/special/acoversin/benchmark/benchmark.native.js create mode 100644 base/special/acoversin/benchmark/c/native/Makefile create mode 100644 base/special/acoversin/benchmark/c/native/benchmark.c create mode 100644 base/special/acoversin/binding.gyp create mode 100644 base/special/acoversin/examples/c/Makefile create mode 100644 base/special/acoversin/examples/c/example.c create mode 100644 base/special/acoversin/include.gypi create mode 100644 base/special/acoversin/include/stdlib/math/base/special/acoversin.h create mode 100644 base/special/acoversin/lib/native.js create mode 100644 base/special/acoversin/manifest.json create mode 100644 base/special/acoversin/src/Makefile create mode 100644 base/special/acoversin/src/addon.c create mode 100644 base/special/acoversin/src/main.c create mode 100644 base/special/acoversin/test/test.native.js 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 ); + } +} +``` + +
+ + + +
+ + +