1.1.5 Complex NumbersYou 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 ii (see Section 1.1.7). The form is normally what is used in output. Note that an ordinary i means a variable named , not . This gives the imaginary number result . | |
Out[1]=
|
|
| This gives the ratio of two complex numbers. | |
In[2]:=
(4 + 3 I) / (2 - I)
|
Out[2]=
|
|
| Here is the numerical value of a complex exponential. | |
Out[3]=
|
|
| x + I y | the 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.
|