This notebook again is useful to see in a 3D plot of the complex log function :
- the principal branch
- the branches
For this purpose, I downloaded the notebook from http://mathworld.wolfram.com/notebooks/ComplexAnalysis/PrincipalBranch.nb.
I also downloaded the Utilities`Typesetting`
package of Eric Weisstein
First, it goes wrong to see the "branches" in a 3D plot and then it goes wrong with the "principal(branch)" 3D plot.
I start with the branches calculation.
<< Utilities`Typesetting`
branches =
Show[Graphics3D[
ParametricPlot3D[
Evaluate[
Table[{r Cos[θ], r Sin[θ],
Im[Log[r Exp[I θ]]] + 2 Pi k}, {k, -1, 1}]], {r, .01,
1}, {θ, 0, 2 π},
DisplayFunction -> Identity,
PlotPoints -> {4, 25}][[1]] /.
Polygon[x_] :>
If[Max[z = Last /@ x] - Min[z] > .5,
Polygon[Join[# - {0, 0, 2 Pi} & /@ Take[x, 2], Take[x, -2]]],
Polygon[x]]],
Axes -> Automatic,
AxesLabel -> TraditionalForm /@ {x, y, HoldForm[Im[Log[z]]]},
AxesEdge -> {{-1, -1}, {1, -1}, {1, 1}},
BoxRatios -> {1, 1, 1},
PlotLabel ->
StyleForm["multiple branches", FontSlant -> "Italic",
FontFamily -> "Times"],
PlotRange -> {-10, 10}]
Note: don't know yet how to write the code here in a programmer style
Normal@ParametricPlot3D[ Evaluate[ Table[{r Cos[\[Theta]], r Sin[\[Theta]], Im[Log[r Exp[I \[Theta]]]] + 2 Pi k}, {k, -1, 1}]], {r, .01, 1}, {\[Theta], 0, 2 \[Pi]}, DisplayFunction -> Identity, PlotPoints -> {4, 25}] /. Polygon[x_] :> If[Max[z = Last /@ x] - Min[z] > .5, Polygon[Join[# - {0, 0, 2 Pi} & /@ Take[x, 2], Take[x, -2]]], Polygon[x]]
help? Nothing in your code relies on non-System` functions.GraphicsComplex
was introduced in V6 and plotters were changed to use it. $\endgroup$