Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Virtual Book > Mathematics and Algorithms > Numbers > Complex Numbers >

Complex Numbers

You can enter complex numbers in Mathematica just by including the constant I, equal to . Make sure that you type a capital I.
If you are using notebooks, you can also enter I as by typing Esc ii Esc (see "Mathematical Notation in Notebooks: Numerical Calculations"). The form is normally what is used in output. Note that an ordinary means a variable named , not .
This gives the imaginary number result .
In[1]:=
Click for copyable input
Out[1]=
This gives the ratio of two complex numbers.
In[2]:=
Click for copyable input
Out[2]=
Here is the numerical value of a complex exponential.
In[3]:=
Click for copyable input
Out[3]=
x+I ythe complex number
Re[z]real part
Im[z]imaginary part
Conjugate[z]complex conjugate or
Abs[z]absolute value
Arg[z]the argument in

Complex number operations.

Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF