# Arithmetic

You can do arithmetic with the Wolfram Language just as you would on an electronic calculator.

This is the sum of two numbers.
 In[1]:=
 Out[1]=
Here the / stands for division, and the ^ stands for power.
 In[2]:=
 Out[2]=
Spaces denote multiplication in the Wolfram Language. The front end automatically replaces spaces between numbers with light gray multiplication signs.
 In[3]:=
 Out[3]=
You can use a * for multiplication if you want to.
 In[4]:=
 Out[4]=
You can type arithmetic expressions with parentheses.
 In[5]:=
 Out[5]=
 x^y power -x minus x/y divide x y z or x*y*z multiply x+y+z add

Arithmetic operations in the Wolfram Language.

Arithmetic operations in the Wolfram Language are grouped according to the standard mathematical conventions. As usual, 2^3+4, for example, means (2^3)+4, and not 2^(3+4). You can always control grouping by explicitly using parentheses.

This result is given in scientific notation.
 In[6]:=
 Out[6]=
You can enter numbers in scientific notation like this.
 In[7]:=
 Out[7]=
Or like this.
 In[8]:=
 Out[8]=

With the Wolfram Language, you can perform calculations with a particular precision, usually higher than an ordinary calculator. When given precise numbers, the Wolfram Language does not convert them to an approximate representation, but gives a precise result.

This gives the result in terms of rational numbers.
 In[9]:=
 Out[9]=
This gives the approximate numerical result.
 In[10]:=
 Out[10]=
This gives the approximate numerical result with 40 significant digits.
 In[11]:=
 Out[11]=