Skip to content

Log10 ​

The base-10 (common) logarithm of z.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageLog10✓
Log10(z)the base-10 logarithm of z, log⁡10(z)\log_{10}(z).
SageMathlog(z, 10)✓SymPylog(z, 10)mpmathlog10(z)Juliaenumeratio_ball(_log10, z)Rustlog10(z)
Typed signatures
TypePackageApplies
(number) -> numbercompute-enginealways

Domain: Elementary functions

Details
  • Equivalent to Log(z, 10) and to compute-engine's default-base Log(z).
  • Same exact-power-of-the-base fold in either direction as Log2.

Plot

Examples

Basic #
live ↗
Inlog⁡10(1 000)\log_{10}(1\,000)Out33
live ↗
Inlog⁡10(1)\log_{10}(1)Out00
live ↗
Inlog⁡10(100 000)\log_{10}(100\,000)Out55
live ↗
Inlog⁡10(1 000 000)\log_{10}(1\,000\,000)Out66

N(...) for a decimal value

live ↗
InN(log⁡10(2))N(\log_{10}(2))Out0.301 029 995 663 981 195 2140.301\,029\,995\,663\,981\,195\,214

With one argument, log is base 10 and stays symbolic

live ↗
Inlog⁡10(2)\log_{10}(2)Outlog⁡10(2)\log_{10}(2)
live ↗
InSeries⁡(log⁡10(x+1),x,0,5)\operatorname{Series}(\log_{10}(x+1), x, 0, 5)Outxln⁡(10)−x22ln⁡(10)+x33ln⁡(10)−x44ln⁡(10)+x55ln⁡(10)+O(x6)\frac{x}{\ln(10)}-\frac{x^2}{2\ln(10)}+\frac{x^3}{3\ln(10)}-\frac{x^4}{4\ln(10)}+\frac{x^5}{5\ln(10)}+O\left(x^6\right)
Scope #

An exact negative power of 10 folds too: log⁡101100=−2\log_{10} \tfrac1{100} = -2

live ↗
Inlog⁡10(1100)\log_{10}(\frac{1}{100})Out−2-2

A symbolic argument becomes compute-engine's default-base Log

live ↗
Inlog⁡10(x)\log_{10}(x)Outlog⁡10(x)\log_{10}(x)
live ↗
Inlog⁡10(5.5)\log_{10}(5.5)Out0.740 362 689 494 243 845 5360.740\,362\,689\,494\,243\,845\,536

Threads element-wise over a list

live ↗
Inlog⁡10([1,10,100,1 000])\log_{10}(\bigl\lbrack1, 10, 100, 1\,000\bigr\rbrack)Out[0,1,2,3]\bigl\lbrack0, 1, 2, 3\bigr\rbrack

Element-wise over a matrix, including the exact 1100\tfrac1{100} entry

live ↗
Inlog⁡10([[1,100],[0,1100]])\log_{10}(\bigl\lbrack\bigl\lbrack1, 100\bigr\rbrack, \bigl\lbrack0, \frac{1}{100}\bigr\rbrack\bigr\rbrack)Out[[0,2],[−∞,−2]]\bigl\lbrack\bigl\lbrack0, 2\bigr\rbrack, \bigl\lbrack-∞, -2\bigr\rbrack\bigr\rbrack

As with Ln, the logarithm of complex infinity is +∞+\infty

live ↗
Inlog⁡10(∞~)\log_{10}(\tilde∞)Out∞∞

Interval arithmetic: log⁡10[13,2]=[log⁡1013,log⁡102]\log_{10}[\tfrac13, 2] = [\log_{10} \tfrac13, \log_{10} 2]

live ↗
Inlog⁡10(Interval(13,2))\log_{10}(\mathrm{Interval}(\frac{1}{3}, 2))OutInterval(log⁡10(13),log⁡10(2))\mathrm{Interval}(\log_{10}(\frac{1}{3}), \log_{10}(2))

Uncertainty propagation, to first order: log⁡10(1101±0.01)≈−2.00±0.44\log_{10}(\tfrac1{101} \pm 0.01) \approx -2.00 \pm 0.44

live ↗
Inlog⁡10(Around(1101,0.01))\log_{10}(\mathrm{Around}(\frac{1}{101}, 0.01))OutAround(−2.004 321 373 782 642 6,0.438 637 426 722 284 34)\mathrm{Around}(-2.004\,321\,373\,782\,642\,6, 0.438\,637\,426\,722\,284\,34)

Derivative: 1xln⁡10\frac{1}{x\ln 10}

live ↗
Indlog⁡10(x)dx\frac{\mathrm{d}\log_{10}(x)}{\mathrm{d}x}Out1xln⁡(10)\frac{1}{x\ln(10)}

To 30 significant digits, every one correctly rounded

live ↗
InN(log⁡10(7),30)N(\log_{10}(7), 30)Out0.845 098 040 014 256 830 712 216 258 5930.845\,098\,040\,014\,256\,830\,712\,216\,258\,593

Another exact base-10 logarithm, unevaluated

live ↗
Inlog⁡10(5)\log_{10}(5)Outlog⁡10(5)\log_{10}(5)

A 100-digit decimal logarithm

live ↗
InN(log⁡10(45),100)N(\log_{10}(45), 100)Out1.653 212 513 775 343 679 376 316 911 785 737 591 632 067 846 919 283 188 349 303 819 483 350 116 292 897 736 599 009 459 177 046 4311.653\,212\,513\,775\,343\,679\,376\,316\,911\,785\,737\,591\,632\,067\,846\,919\,283\,188\,349\,303\,819\,483\,350\,116\,292\,897\,736\,599\,009\,459\,177\,046\,431

A complex argument gives a complex float

live ↗
InN(log⁡10(4+i))N(\log_{10}(4+i))Out0.615 224 460 689 136 9+0.106 392 881 580 032 71i0.615\,224\,460\,689\,136\,9+0.106\,392\,881\,580\,032\,71i

A matrix function with eigenvalues 1 and 1100\frac1{100} gives the exact integers 0 and −2-2

live ↗
InFullSimplify(MatrixFunction(Log10,[[1,100],[0,1/100]]))\mathrm{FullSimplify}(\mathrm{MatrixFunction}(\mathrm{Log10}, \bigl\lbrack\bigl\lbrack1, 100\bigr\rbrack, \bigl\lbrack0, 1/100\bigr\rbrack\bigr\rbrack))Out[[0,20 00099],[0,−2]]\bigl\lbrack\bigl\lbrack0, \frac{20\,000}{99}\bigr\rbrack, \bigl\lbrack0, -2\bigr\rbrack\bigr\rbrack

log⁡∞=∞\log\infty=\infty

live ↗
Inlog⁡10(∞)\log_{10}(∞)Out∞∞

The log of 0 is −∞-\infty

live ↗
Inlog⁡10(0)\log_{10}(0)Out−∞-∞
Applications #

A float argument folds even for a fractional power of 10

live ↗
Inlog⁡10(0.001)\log_{10}(0.001)Out−3.0-3.0
Properties #

Same as compute-engine's default-base Log

live ↗
Inlog⁡10(1 000)=log⁡10(1 000)\log_{10}(1\,000)=\log_{10}(1\,000)OutTrue\mathrm{True}
About
Examples25
Checked againstWolfram Language 25 agreeSageMath 22 agreeSymPy 21 agree3 differmpmath 18 agreeJulia 15 agree3 errorRust 14 agree2 error
CrosswalkWolfram LanguageSageMathSymPympmathJuliaRust

Implementation

mappedsympypackages/oracle/src/mappings.ts
mappedmpmathpackages/oracle/src/mappings.ts
mappedsagepackages/oracle/src/mappings.ts
mappedjuliapackages/oracle/src/mappings.ts
mappedrustpackages/oracle/src/mappings.ts

See also: Log, Log2, Lb