Recent versions of Mathematica have introduced various functions for plotting in terms of complex numbers and complex functions, including ComplexPlot
, ComplexListPlot
, ComplexRegionPlot
, and ComplexVectorPlot
. These functions allow direct use of complex numbers and complex functions without the user having to explicitly apply ReIm
or otherwise split complex objects into their real and imaginary parts.
Question: Is there a built-in function that provides some very basic and essential plotting functionality for geometric objects specified in terms of complex numbers. For example:
- plotting a line segment in the complex plane by directly specifying its endpoints as complex numbers?
- plotting a circle (not a filled disk!) in the complex plane by specifying its center directly as a complex number and its radius?
(And if not, why on earth not?? Given that Mathematica regards complex numbers as being so fundamental that one must explicitly override assumptions of numbers being complex when you want them to be real, it seems surprising to me that it's taken even this long for Mathematica to build in the complex plotting functions I cite.)
As a very basic and simple example, I want to do make the following kind of graphics — without having to use ReIm
to split up explicitly all the complex numbers into their real and complex parts.
Graphics[{Circle[ReIm[2 + 2 I], 1], PointSize[Large], Red,
Point[ReIm[2 + 2 I]], Thick, Blue, Line[ReIm[{1 + 2 I, 3 + 2 I}]]},
Axes -> True, AxesOrigin -> ReIm[0]]
At least ComplexListPlot
would allow plotting one element there, namely, the center of the circle, and that could be combined using a Show
with the other graphics. Still, that leaves the circle and line segment to treat.