Function reference · Math

log10

Returns the base-10 logarithm of an expression.

Exact powers of ten simplify. Otherwise the result is written as log(x)/log(10).

Notation

log10(x)

Write it in an expression: nerdamer('log10(1000)'), or in the Playground.

nerdamer.log10

nerdamer.log10(x: ExpressionInput): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

1000 is 10^3.

log10(1000)
// → 3
Open in Playground

A larger power of ten.

log10(10^7)
// → 7
Open in Playground

A symbol, written with natural logarithms.

log10(x)
// → log(x)*log(10)^-1
Open in Playground

← Back to Function reference