4
$\begingroup$

I want to run my code

ContourPlot3D[(2 Zeta[1 + \[Alpha]] - 
   PolyLog[1 + \[Alpha], Exp[I*k]] - 
   PolyLog[1 + \[Alpha], Exp[-I*k]] - 2 A^2), {k, -2 \[Pi], 
  2 \[Pi]}, {A, 0, 30}, {\[Alpha], 0.001, 2}, 
 PlotLegends -> Automatic]

but even after a very long time it does not complete. Is there something I can do to make it finish compiling?

$\endgroup$
1

1 Answer 1

6
$\begingroup$

An alternative method using ListContourPlot3D:

expr = 2 Zeta[1 + α] - PolyLog[1 + α, Exp[I*k]] - PolyLog[1 + α, Exp[-I*k]] - 2 A^2;

ListContourPlot3D[Table[expr, {k, -2 π, 2 π}, {A, 0, 30}, {α, 0.001, 2}], 
Contours -> 4, Mesh -> None, AxesLabel -> {Style["k", Black, 18], 
Style["A", Black, 18], Style["α", Black, 18]}, PlotLegends -> Automatic]

enter image description here

Or using MaTeX:

<< MaTeX`
ListContourPlot3D[Table[expr, {k, -2 π, 2 π}, {A, 0, 30}, {α, 0.001, 2}], 
Contours -> 4, Mesh -> None, AxesLabel -> {MaTeX["k", Magnification -> 1.5], 
MaTeX["A", Magnification -> 1.5], MaTeX["\\alpha", Magnification -> 1.5]}, 
PlotLegends -> Automatic]

enter image description here

Evaluate ResourceFunction["MaTeXInstall"][] to install or upgrade MaTeX.

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.