diff --git a/lib/node_modules/@stdlib/math/base/special/log10/README.md b/lib/node_modules/@stdlib/math/base/special/log10/README.md index f8f9f577e3e4..547a7a08c534 100644 --- a/lib/node_modules/@stdlib/math/base/special/log10/README.md +++ b/lib/node_modules/@stdlib/math/base/special/log10/README.md @@ -107,6 +107,96 @@ for ( i = 0; i < 100; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/log10.h" +``` + +#### stdlib_base_log10( x ) + +Evaluates the [common logarithm][common-logarithm]. + +```c +double out = stdlib_base_log10( 100.0 ); +// returns 2.0 + +out = stdlib_base_log10( 8.0 ); +// returns ~0.903 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_log10( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/log10.h" +#include +#include + +int main() { + double x; + double v; + int i; + + for ( i = 0; i < 100; i++ ) { + x = ( (double)rand() / (double)RAND_MAX ) * 100.0; + v = stdlib_base_log10( x ); + printf( "log10(%lf) = %lf\n", x, v ); + } +} +``` + +
+ + + +
+ + +