I have a triple integral with 2 changing angles (a and t). I need to integrate it and obtain a 3DPlot in polar coordinates (R,a,t). But Mathematica does not make it. What is wrong here?
s = 3;
n = 1;
p = 1;
r = 1;
L = Sqrt[(4*p + r^2)/3];
b = Sqrt[2*n*p];
R[a_, t_] := NIntegrate[((k^2)*Exp[-1.5*k^2])*((u^2)*(1 - u^2)*Exp[-(b*u)^2]*
(Cos[s*k*u*Cos[a]/L]))*((Cos[c])^2)*(Cos[k*Sqrt[1 - u^2]*
(s*Sin[a]*Cos[t]*Cos[c] + s*Sin[a]*Sin[t]*Sin[c])/L]),
{k, 0, Infinity}, {u, -1, 1}, {c, 0, 2*Pi}]
Plot3D[R[a, t]*B, {a, 0, 2*Pi}, {t, 0, 2*Pi}, PolarAxes -> True,
PolarGridLines -> Automatic, PlotRange -> All, AxesLabel -> {"a", "R", "t"},
ImageSize -> 500]
B
in yourPlot3D
command? It isn't defined in your code snippet. Also, note thatPolarAxes
andPolarGridLines
are not valid options forPlot3D
. $\endgroup$SphericalPlot3D
function, but you wouldn't be plotting your two angles from 0 to 2π if that's what you were trying to do. $\endgroup$k
can be performed analytically. If you do that and feed the result intoNIntegrate
to do theu
andc
integrals, it'll save you some computer cycles. $\endgroup$