MATHEMATICA TUTORIAL

# Arithmetic

You can do arithmetic with Mathematica just as you would on an electronic calculator.

This is the sum of two numbers.
 Out[1]=
Here the stands for division, and the stands for power.
 Out[2]=
Spaces denote multiplication in Mathematica. The front end automatically replaces spaces between numbers with light gray multiplication signs.
 Out[3]=
You can use a for multiplication if you want to.
 Out[4]=
You can type arithmetic expressions with parentheses.
 Out[5]=
Spaces are not needed, though they often make your input easier to read.
 Out[6]=
 x^y power -x minus x/y divide x y z or x*y*z multiply x+y+z add

Arithmetic operations in Mathematica.

Arithmetic operations in Mathematica are grouped according to the standard mathematical conventions. As usual, , for example, means , and not . You can always control grouping by explicitly using parentheses.

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

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

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

## Tutorial CollectionTutorial Collection

New to Mathematica? Find your learning path »
Have a question? Ask support »