ReIm

ReIm[z]

gives the list {Re[z],Im[z]} of the number z.

Details

  • ReIm automatically threads over lists.

Examples

open allclose all

Basic Examples  (3)

The real and imaginary parts of a complex number:

In[1]:=
Click for copyable input
Out[1]=

Real numbers are a special kind of complex number:

In[1]:=
Click for copyable input
Out[1]=

ReIm[list] gives a list of ordered pairs:

In[1]:=
Click for copyable input
Out[1]=

Scope  (5)

Applications  (3)

Properties & Relations  (7)

Possible Issues  (1)

See Also

Re  Im  ComplexExpand  Complex  FromPolarCoordinates  AbsArg

Introduced in 2015
(10.1)