This function overloads cmath's log10 function.
Parameters
- x
- valarray containing elements of a type for which the unary function log10 is defined.
Return value
A valarray object with the common logarithms of the elements of x.Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
Output:
foo: 1 10 100 200 bar: 0 1 2 2.30103 |
See also
| log10 (cmath) | Compute common logarithm (function) |
| log | Compute natural logarithm of valarray elements (function template) |
| exp | Compute exponential of valarray elements (function template) |
| pow | Compute power of valarray elements (function template) |
