Wolfram Language Fast Introduction for Math Students
Get Started »

Exponentials & Logarithms

The Wolfram Language represents the exponential constant as E.

Log gives the natural logarithm of an expression:

In[1]:=
Click for copyable input
Log[E^2]
Out[1]=

Calculate the log base 2:

In[2]:=
Click for copyable input
Log[2, 64]
Out[2]=

Make plots on a logarithmic scale:

In[1]:=
Click for copyable input
LogPlot[E^x, {x, 1, 5}]
Out[1]=

Make both axes logarithmic:

In[2]:=
Click for copyable input
LogLogPlot[x^2 + x^3, {x, 1, 100}]
Out[2]=