# Chapter 2. Interactive Use of Mathematica

This chapter covers the use of Mathematica as a supercalculator. It does what an electronic calculator can do, and it does a lot more. We enter input and Mathematica returns the output. As seen in Chapter 1, the nth input is labeled “`In`[n`]:=`” and the corresponding output, “`Out`[n`]=`”.

# Numerical Capabilities

## Arithmetic Operations

Table 2.1 lists the arithmetic symbols in Mathematica. Here are some examples of their use:

```In:= 2.1 + 3.72
Out= 5.82
In:= 6.882/2
Out= 3.441

In:= 2^3
Out= 8```

Table 2.1. Arithmetic Operations in Mathematica

Mathematica Operation

Symbol

+

Subtraction

Multiplication

*

Division

/

Exponentiation

^

## Spaces and Parentheses

Any number of spaces can replace the symbol * for multiplication: ...

Get A Physicist's Guide to Mathematica, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.