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 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 , which is entered as ii
.)
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.