Return the base 10 logarithm, element-wise.
SciPhp\NdArray
NdArray::log10()
This function has no parameters.
use SciPhp\NumPhp as np;
$m = np::ar([1, 10, 100, 1000])->log10();
echo "m\n$m";
The above example will output:
m [0 1 2 3]
use SciPhp\NumPhp as np;
$m = np::ar([1, 10, 100])->vander();
$r = $m->log10($m);
echo "m\n$m", "r\n$r";
The above example will output:
m [[1 1 1 ] [100 10 1 ] [10000 100 1 ]] r [[0 0 0] [2 1 0] [4 2 0]]