log10(x)
Return the "principal value" (for a description of this, see :None:None:`numpy.log10`
) of $log_{10}(x)$
. For real :None:None:`x > 0`
, this is a real number ( log10(0)
returns -inf
and log10(np.inf)
returns inf
). Otherwise, the complex principle value is returned.
For a log10() that returns NAN
when real :None:None:`x < 0`
, use :None:None:`numpy.log10`
(note, however, that otherwise :None:None:`numpy.log10`
and this log10
are identical, i.e., both return -inf
for :None:None:`x = 0`
, inf
for :None:None:`x = inf`
, and, notably, the complex principle value if x.imag != 0
).
The value(s) whose log base 10 is (are) required.
The log base 10 of the x
value(s). If x
was a scalar, so is :None:None:`out`
, otherwise an array object is returned.
Compute the logarithm base 10 of x
.
(We set the printing precision so the example can be auto-tested)
>>> np.set_printoptions(precision=4)
>>> np.emath.log10(10**1) 1.0
>>> np.emath.log10([-10**1, -10**2, 10**2]) array([1.+1.3644j, 2.+1.3644j, 2.+0.j ])See :
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.lib.scimath.log10
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them