diff --git a/CHANGELOG.md b/CHANGELOG.md index 76e969d77..40bbcdf57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-06-16) +## Unreleased (2024-06-17)
@@ -3173,6 +3173,28 @@ This release closes the following issue: +
+ +#### [@stdlib/math/base/special/hacovercos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/hacovercos) + +
+ +
+ +##### Features + +- [`d07c8ff`](https://github.com/stdlib-js/stdlib/commit/d07c8ffc9328edf8c4acb24029f13d2e37575fae) - add C implementation for `math/base/special/hacovercos` [(##2388)](#2388) + +
+ + + +
+ +
+ + +
#### [@stdlib/math/base/special/kernel-cos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/kernel-cos) @@ -4599,6 +4621,7 @@ A total of 28 people contributed to this release. Thank you to the following con
+- [`d07c8ff`](https://github.com/stdlib-js/stdlib/commit/d07c8ffc9328edf8c4acb24029f13d2e37575fae) - **feat:** add C implementation for `math/base/special/hacovercos` [(##2388)](#2388) _(by Gunj Joshi)_ - [`53cf211`](https://github.com/stdlib-js/stdlib/commit/53cf211f341dc87077710b30ac41a0938e83b773) - **fix:** use correct assignment and adjust test tolerances _(by Athan Reines)_ - [`11c882d`](https://github.com/stdlib-js/stdlib/commit/11c882dcc261abe6a898a3061b45af7f0d4a41cd) - **chore:** update package meta data [(##2379)](#2379) _(by stdlib-bot, Athan Reines)_ - [`7b85db8`](https://github.com/stdlib-js/stdlib/commit/7b85db803f6a6bce2999bfe8b2513edb08e15a67) - **feat:** add C implementation for `math/base/special/covercos` [(##2377)](#2377) _(by Gunj Joshi)_ diff --git a/CONTRIBUTORS b/CONTRIBUTORS index a44d7ac4b..7ec15a743 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -63,6 +63,7 @@ Pushpendra Chandravanshi Raunak Kumar Gupta Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com> Ricky Reusser +Ridam Garg <67867319+RidamGarg@users.noreply.github.com> Robert Gislason Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com> Rutam <138517416+performant23@users.noreply.github.com> @@ -75,7 +76,7 @@ Shraddheya Shendre Shubh Mehta <93862397+Shubh942@users.noreply.github.com> Shubham Mishra Sivam Das <100067002+Sivam2313@users.noreply.github.com> -Snehil Shah <130062020+Snehil-Shah@users.noreply.github.com> +Snehil Shah Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com> Spandan Barve Stephannie Jiménez Gacha diff --git a/base/special/hacovercos/README.md b/base/special/hacovercos/README.md index f93295f45..befab2257 100644 --- a/base/special/hacovercos/README.md +++ b/base/special/hacovercos/README.md @@ -93,6 +93,94 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/hacovercos.h" +``` + +#### stdlib_base_hacovercos( x ) + +Computes the half-value [coversed cosine][coversed-cosine] (in radians). + +```c +double out = stdlib_base_hacovercos( 0.0 ); +// returns 0.5 + +out = stdlib_base_hacovercos( 3.141592653589793 / 2.0 ); +// returns 1.0 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_hacovercos( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/hacovercos.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_hacovercos( x[ i ] ); + printf( "hacovercos(%lf) = %lf\n", x[ i ], y ); + } +} +``` + +
+ + + +
+ + +