2.1 Arithmetic
You can do arithmetic with Mathematica TE just as you would on an electronic calculator.
This is the sum of two numbers.
In[1]:= 2.3 + 5.63
Out[1]=
Here the ^ stands for power. means 10 times itself 3 times.
In[2]:= 10 ^ 3
Out[2]=
Here the / stands for division. The power is done first.
In[3]:= 2.4 / 8.9 ^ 2
Out[3]=
Spaces denote multiplication in Mathematica TE. You can use a * for multiplication if you want to.
In[4]:= 2 3 4
Out[4]=
You can type arithmetic expressions with parentheses.
In[5]:= (3 + 4) ^ 2 - 2 (3 + 1)
Out[5]=
Spaces are not needed, though they often make your input easier to read.
In[6]:= (3+4)^2-2(3+1)
Out[6]=
Arithmetic operations in Mathematica.
Arithmetic operations in Mathematica TE 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[7]:= 2.4 ^ 45
Out[7]=
You can enter numbers in scientific notation like this.
In[8]:= 2.3 10 ^ -70
Out[8]=