ReIm
Examples
open all close allBasic Examples (3)
The real and imaginary parts of a complex number:
Real numbers are a special kind of complex number:
ReIm[list] gives a list of ordered pairs:
Scope (5)
ReIm accepts all number types:
ReIm works with symbolic representations of numbers:
Purely symbolic expressions can be partially simplified:
ReIm supports nested lists and ragged arrays:
ReIm works with SparseArray and structured array objects:
Applications (3)
Properties & Relations (9)
ReIm increases the depth of an array by one, adding a new inner dimension of length 2:
ReIm[array] gives an array of {re,im} pairs:
This can be turned into a pair {Re[array],Im[array]} using Transpose:
ComplexExpand assumes variables to be real:
In general, variables are assumed to be complex, which may prevent simplification:
Use Simplify and FullSimplify to simplify the results of ReIm:
ReIm converts complex numbers to pairs:
FromPolarCoordinates converts pairs of real-valued polar coordinates to pairs:
ReIm can be viewed as the composition of AbsArg and FromPolarCoordinates:
ReIm converts complex numbers to pairs:
AngleVector converts pairs of reals to pairs:
ReImPlot plots the real and imaginary parts of a function:
Use ComplexListPlot to plot complex numbers using their real and imaginary parts:
See Also
Re Im ComplexExpand Complex FromPolarCoordinates AbsArg ReImPlot
Function Repository: ComplexToPolar
Related Guides
History
Text
Wolfram Research (2015), ReIm, Wolfram Language function, https://reference.wolfram.com/language/ref/ReIm.html.
CMS
Wolfram Language. 2015. "ReIm." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ReIm.html.
APA
Wolfram Language. (2015). ReIm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ReIm.html
BibTeX
@misc{reference.wolfram_2025_reim, author="Wolfram Research", title="{ReIm}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/ReIm.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_reim, organization={Wolfram Research}, title={ReIm}, year={2015}, url={https://reference.wolfram.com/language/ref/ReIm.html}, note=[Accessed: 16-August-2025]}