Complex Function Grid Transformation

What you're seeing: The left canvas shows a coordinate grid in the complex plane (z = x + yi). The right canvas shows how this grid gets transformed when you apply your complex function f(z). Each vertical line becomes f({constant x-value} + yi) and each horizontal line becomes f(x + i{constant y-value}).

Mouse controls:

Function examples: Try z^2, 1/z, z^3 + z, sin(z), exp(z), (z-1)/(z+1)

Math syntax: For complete function syntax, see the Math.js documentation. Use z as your complex variable.