diff --git a/CHANGELOG.md b/CHANGELOG.md index e8449a675..b380ccca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-06-13) +## Unreleased (2024-06-14)
@@ -4125,6 +4125,28 @@ A total of 2 issues were closed in this release: +
+ +#### [@stdlib/math/base/special/tan](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/tan) + +
+ +
+ +##### Features + +- [`6199f14`](https://github.com/stdlib-js/stdlib/commit/6199f14235f3aff23b57504bd62923ebf45555e0) - add C implementation for `math/base/special/tan` + +
+ + + +
+ +
+ + +
#### [@stdlib/math/base/special/tand](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/tand) @@ -4529,6 +4551,7 @@ A total of 26 people contributed to this release. Thank you to the following con
+- [`6199f14`](https://github.com/stdlib-js/stdlib/commit/6199f14235f3aff23b57504bd62923ebf45555e0) - **feat:** add C implementation for `math/base/special/tan` _(by Gunj Joshi)_ - [`822491d`](https://github.com/stdlib-js/stdlib/commit/822491dd173e2ca1195c4b4f4600419f55b5ee15) - **docs:** fix function signature in table of contents [(##2371)](#2371 ) _(by stdlib-bot, Philipp Burckhardt)_ - [`fdba877`](https://github.com/stdlib-js/stdlib/commit/fdba877adb81859aa87b72685f19a8921d4dd8db) - **feat:** add C implementation for `math/base/special/csc` [(##2367)](#2367 ) _(by Gunj Joshi)_ - [`ae92cf0`](https://github.com/stdlib-js/stdlib/commit/ae92cf0e2ff55d9e0d490ece6bd32eb8da0506a9) - **fix:** use significand mask in `math/base/special/rempio2` [(##2366)](#2366) _(by Gunj Joshi)_ diff --git a/base/special/tan/README.md b/base/special/tan/README.md index d0b2f3cb9..9e317a8c0 100644 --- a/base/special/tan/README.md +++ b/base/special/tan/README.md @@ -96,6 +96,91 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/tan.h" +``` + +#### stdlib_base_tan( x ) + +Evaluates the [tangent][tangent] of a `number` (in radians). + +```c +double y = stdlib_base_tan( -3.141592653589793 / 4.0 ); +// returns ~-1.0 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_tan( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/tan.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_tan( x[ i ] ); + printf( "tan(%lf) = %lf\n", x[ i ], y ); + } +} +``` + +
+ + + +
+ + +