Skip to content

A visualizer for functions with complex inputs and outputs

License

Notifications You must be signed in to change notification settings

chrisseiler/complex-functions

Repository files navigation

complex-functions

A simple Java visualizer for functions with complex inputs and outputs that I wrote in 2016. This project has two main uses: showing a 6-second animation of a function acting on the complex plane, and mapping the complex plane to colors based on modulus (brightness) and argument (hue).

The provided code creates an animation of the function equation1. The complex plane should warp into something like this: func1

In the main class, there is also a commented-out example that maps the complex plane to colors. The brightness, between 0 and 1, is determined as a proportion of the given number's radius to a specified number (to make the colors clear, I take r=1 as the proportion). Below, the function equation2 is graphed using this technique on an 800 x 500 image: func2

As visible in the image above, numbers to the right -- that is, those with large real components -- have reciprocals with small real components, causing the inverse sine function to produce low-radius outputs.

About

A visualizer for functions with complex inputs and outputs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages