Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  The Teacher's Book /  Basic Calculations /  Real and Complex Numbers /

4.1 Types of Numbers

Four types of numbers are built into Mathematica TE.

Intrinsic types of numbers in Mathematica.

Rational numbers always consist of a ratio of two integers, reduced to lowest terms.

In[1]:= 12344/2222

Out[1]=

Approximate real numbers are distinguished by the presence of an explicit decimal point.

In[2]:= 5456.

Out[2]=

An approximate real number can have any number of digits.

In[3]:= 4.54543523454543523453452345234543

Out[3]=

The number DoubleStruckI times itself is , which is impossible for a real number.

In[4]:= I I

Out[4]=

Complex numbers can be formed as arithmetic combinations of I with integers and rationals. (You can also use DoubleStruckI, which is entered as EscapeKeyii EscapeKey.)

In[5]:= 4 + 7/8 I

Out[5]=

They can also have approximate real number components.

In[6]:= 4 + 5.6 I

Out[6]=

Several versions of the number 123.