Initialisation code:
refunc = ComplexExpand[Re[(x + I*y)^6 + 6 (x + I*y) + 10]];
imfunc = ComplexExpand[Im[(x + I*y)^6 + 6 (x + I*y) + 10]];
contrans[func_, xtrans_, ytrans_] :=
func /. {x -> xtrans, y -> strains};
Manipulation:
Manipulate[
Grid[{{Text@"contour",
Text@"image"}, {ParametricPlot[{{r*Cos[t], r*Sin[t]}}, {t, 0,
2 \[Pi]}, PlotStyle -> {Thickness[.003]},
PlotRange -> {{-2, 2}, {-2, 2}}, AspectRatio -> Automatic,
ImageSize -> {295}],
ParametricPlot[{{contrans[refunc, r*Cos[t], r*Sin[t]],
contrans[imfunc, r*Cos[t], r*Sin[t]]}}, {t, 0, 2 \[Pi]},
PlotStyle -> {Thickness[.003]},
PlotRange -> {{-70, 90}, {-80, 80}}, AspectRatio -> Automatic,
ImageSize -> {295}]}}], {{r, 1}, 0.5, 2},
SaveDefinitions -> True]
This is from a Wolfram Demonstration Project.
I would like to use this code to map f(z)=z^n rather than f(z)=z^6 + 6z +10 as they have used here. Each time I try, the image part of the plot remains blank, I'm not sure what I'm doing wrong!
Thanks a lot.