Algebra and Number Theory

Representations of Complex Numbers

The new functions ReIm and AbsArg make it easy to convert a complex number to either its Cartesian or polar representation.

Convert a complex number to the ordered pair .

In[1]:=
Click for copyable input
ReIm[3 + 4 I]
Out[1]=

Convert several numbers.

In[2]:=
Click for copyable input
ReIm[{Pi, -2 I, Sqrt[-I], 3 Exp[I 2 Pi/3]}]
Out[2]=

Convert a complex number to the ordered pair .

In[3]:=
Click for copyable input
AbsArg[3 + 4 I]
Out[3]=

Convert several numbers.

In[4]:=
Click for copyable input
AbsArg[{Pi, -2 I, Sqrt[-I], 3 Exp[I 2 Pi/3]}]
Out[4]=

Plot a complex-valued function as a curve in the complex plane.

In[5]:=
Click for copyable input
ParametricPlot[ReIm[(-2)^x], {x, 0, 4}]
Out[5]=

Annotate specific points in a complex-plane plot.

In[6]:=
Click for copyable input
JuliaSetPlot[-1, PlotRange -> 1.75, Epilog -> {PointSize[Large], White, Point[ReIm[{I/2, -I/2, 1, -1}]]}]
Out[6]=

Related Examples

de es fr ja ko pt-br ru zh