对于一个方程我用ContourPlot作出了2D图
nmax = 40;
c[n_] := v (1 - (-1)^n) *2/(n*Pi*Sinh[n*Pi*b/a]);
\[Phi] = Sum[c[n]*2/a*Sin[n*Pi*x/a]*Sinh[n*Pi*y/a], {n, 1, nmax}];
v = 1;
a = 1;
b = 1;
ContourPlot[\[Phi], {x, 0, a}, {y, 0, b}, PlotPoints -> 35,
Contours -> 40, ColorFunction -> Hue]
如何转换成3D的呢?希望图形能在xy-面上,方程在z上没有定义。
此外如何表示求和中n=1,3,5...11?
nmax = 40;
c[n_] := v (1 - (-1)^n) *2/(n*Pi*Sinh[n*Pi*b/a]);
\[Phi] = Sum[c[n]*2/a*Sin[n*Pi*x/a]*Sinh[n*Pi*y/a], {n, 1, nmax}];
v = 1;
a = 1;
b = 1;
ContourPlot[\[Phi], {x, 0, a}, {y, 0, b}, PlotPoints -> 35,
Contours -> 40, ColorFunction -> Hue]
如何转换成3D的呢?希望图形能在xy-面上,方程在z上没有定义。
此外如何表示求和中n=1,3,5...11?