diff --git a/lib/node_modules/@stdlib/math/base/special/fast/atanh/README.md b/lib/node_modules/@stdlib/math/base/special/fast/atanh/README.md index 707213322c7f..b2c6fd3b0656 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/atanh/README.md +++ b/lib/node_modules/@stdlib/math/base/special/fast/atanh/README.md @@ -103,6 +103,94 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/fast/atanh.h" +``` + +#### stdlib_base_fast_atanh( x ) + +Computes the [hyperbolic arctangent][inverse-hyperbolic] of a double-precision floating-point number (in radians). + +```c +double out = stdlib_base_fast_atanh( 0.0 ); +// returns 0.0 + +out = stdlib_base_fast_atanh( -0.0 ); +// returns -0.0 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_fast_atanh( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/fast/atanh.h" +#include + +int main( void ) { + const double x[] = { -1.0, -0.78, -0.56, -0.33, -0.11, 0.11, 0.33, 0.56, 0.78, 1.0 }; + + double v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_fast_atanh( x[ i ] ); + printf( "atanh(%lf) = %lf\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + +