diff --git a/base/special/atand/README.md b/base/special/atand/README.md index 988ff8025..2fbe93c8b 100644 --- a/base/special/atand/README.md +++ b/base/special/atand/README.md @@ -81,6 +81,78 @@ for ( i = 0; i < x.length; i++ ) { + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/atand.h" +``` + +#### stdlib_base_atand( x ) + +Computes the [arctangent][arctangent] (in degrees) of a double-precision floating-point number. + +```c +double out = stdlib_base_atand( 0.0 ); +// returns 0.0 + +out = stdlib_base_atand( 0.5 ); +// returns ~26.57 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_atand( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/atand.h" +#include + +int main( void ) { + const double x[] = { 1.0, 1.45, 1.89, 2.33, 2.78, 3.22, 3.66, 4.11, 4.55, 5.0 }; + + double v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_atand( x[ i ] ); + printf( "atand(%lf) = %lf\n", x[ i ], v ); + } +} +``` + +
+ + + + + + +