ComplexMapVisualization, a function for visualizing complex maps

In most standard complex analysis notebooks, you will see diagrams illustrating how a particular section of the complex plane is mapped to another by a function.

A number of examples are given at

but I felt that there was a good opportunity to make a more general function to illustrate these maps, and created a ResourceFunction called ComplexMapVisualization.

This function is built around ImageTransformation, and, with default options, takes a function and illustrates how it maps a given section of the complex plane:

ResourceFunction["ComplexMapVisualization"][Gamma, PlotRange -> {{-3, 3}, {-1, 1}}]

ResourceFunction["ComplexMapVisualization"][
 Function[z, (z - 1)/(z^2 + 2)], PlotRange -> {{-3, 3}, {-3, 3}}, RasterSize -> 150]

The function is built around ImageTransformation and Rasterize, and inherits options from both of those. You can also specify your own image to visualize the map:

ResourceFunction["ComplexMapVisualization"][Cosh, PlotRange -> {{-2, 2}, {-2, 2}}, "Image" -> ExampleData[{"TestImage", "Mandrill"}], RasterSize -> 100]

Enjoy!

7 Likes

news-congrads-kkluyshnik-02-04-19.jpg – you have earned Featured Contributor Badge 2015-11-02_10-07-11.png
Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!