diff --git a/CHANGELOG.md b/CHANGELOG.md index 30d0680da..a5809c4d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3587,6 +3587,28 @@ This release closes the following issue: +
+ +#### [@stdlib/math/base/special/fresnelc](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/fresnelc) + +
+ +
+ +##### Features + +- [`4a2534a`](https://github.com/stdlib-js/stdlib/commit/4a2534a22c2ead42a6318bed2fce221286f9f7a8) - add C implementation for `math/base/special/fresnelc` [(#2680)](https://github.com/stdlib-js/stdlib/pull/2680) + +
+ + + +
+ +
+ + +
#### [@stdlib/math/base/special/fresnels](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/fresnels) @@ -5604,6 +5626,7 @@ A total of 29 people contributed to this release. Thank you to the following con
+- [`4a2534a`](https://github.com/stdlib-js/stdlib/commit/4a2534a22c2ead42a6318bed2fce221286f9f7a8) - **feat:** add C implementation for `math/base/special/fresnelc` [(#2680)](https://github.com/stdlib-js/stdlib/pull/2680) _(by Gunj Joshi)_ - [`c476e32`](https://github.com/stdlib-js/stdlib/commit/c476e32e617de04644d9fbf399a34f80661778ea) - **feat:** add C implementation for `math/base/special/fresnels` [(#2675)](https://github.com/stdlib-js/stdlib/pull/2675) _(by Gunj Joshi)_ - [`7e04d9e`](https://github.com/stdlib-js/stdlib/commit/7e04d9e27fb5008c1cbc6e45e08ea6ad4b8993d2) - **refactor:** use max-safe-nth-factorial package [(#2676)](https://github.com/stdlib-js/stdlib/pull/2676 ) _(by Gunj Joshi)_ - [`26e46d5`](https://github.com/stdlib-js/stdlib/commit/26e46d57474904e02d69b98d8e06052333522257) - **docs:** fix missing `@private` tag [(#2672)](https://github.com/stdlib-js/stdlib/pull/2672) _(by Gunj Joshi)_ diff --git a/base/special/fresnelc/README.md b/base/special/fresnelc/README.md index 6953bfe4b..83b59b22c 100644 --- a/base/special/fresnelc/README.md +++ b/base/special/fresnelc/README.md @@ -100,6 +100,94 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/fresnelc.h" +``` + +#### stdlib_base_fresnelc( x ) + +Computes the [Fresnel integral][fresnel-integral] C(x). + +```c +double out = stdlib_base_fresnelc( 0.0 ); +// returns ~0.0 + +out = stdlib_base_fresnelc( 1.0 ); +// returns ~0.780 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_fresnelc( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/fresnelc.h" +#include + +int main( void ) { + const double x[] = { 0.0, 3.14, 5.55, 10.0 }; + + double y; + int i; + for ( i = 0; i < 4; i++ ) { + y = stdlib_base_fresnelc( x[ i ] ); + printf( "fresnelc(%lf) = %lf\n", x[ i ], y ); + } +} +``` + +
+ + + +
+ + +