You can do arithmetic with the Wolfram Language just as you would on an electronic calculator.
This is the sum of two numbers:
Here the / stands for division, and the ^ stands for power:
Spaces denote multiplication in the Wolfram Language. The front end automatically replaces spaces between numbers with light gray multiplication signs:
You can use a * for multiplication if you want to:
You can type arithmetic expressions with parentheses:
xyz or x*y*z
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:
You can enter numbers in scientific notation like this:
Or like this:
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:
This gives the approximate numerical result:
This gives the approximate numerical result with 40 significant digits: