I'm starting to study complex analysis,so I'm trying out Mathematica as tool for visualizing complex functions. I'm trying to graph $f(z)=z^2 + 1$ with the code:
ComplexPlot3D[z^2 + 1 , {z, 2}]
and what I get is this:
Something is wrong, because I expected negative real values of f(z) along the imaginary input axis. So I looked for a description of the function ComplexPlot3D[]
and it says:
ComplexPlot3D[f,{z,Subscript[z, min],Subscript[z, max]}]
generates a 3D plot of Abs[f]
colored by Arg[f]
over the complex rectangle with corners Subscript[z, min]
and Subscript[z, max]
.
So the problem is that this plot function evaluates the absolute value (Abs[f]) instead of the actual value of the funtion it is plotting. Do any of you know how to fix this, or can point me to another function instead of this one? Thanks!
ComplexPlot[(z^2 + 1), {z, 2}, ColorFunction -> "CyclicLogAbsArg"]
$\endgroup$