level 1
树的里事故
楼主



如图,上面两个运算的区别仅仅在于画横线的地方,但按理来说他们的结果应该是一样的啊,然而确并不相同 代码:R = 1; By[y_, z_] :=
NIntegrate[(
R*z*Sin[\[CurlyPhi]])/(y^2 + z^2 + R^2 - 2 y*R*Sin[\[CurlyPhi]])^(
3/2),
{\[CurlyPhi], 0, 2 \[Pi]}];
Plot[By[y, R/2], {y, 0, 3 R}, AxesLabel -> {"\!\(\*
StyleBox[\"y\",\nFontSize->14]\)", "\!\(\*
StyleBox[\"By\",\nFontSize->14]\)"},
PlotStyle -> Thickness[0.004],
AxesStyle -> Thickness[0.003]]
R = 1; r = (y^2 + z^2 + R^2 - 2 y*R*Sin[\[CurlyPhi]])^(3/2);
By[y_, z_] :=
NIntegrate[(R*z*Sin[\[CurlyPhi]])/r,
{\[CurlyPhi], 0, 2 \[Pi]}];
Plot[By[y, R/2], {y, 0, 3 R}, AxesLabel -> {"\!\(\*
StyleBox[\"y\",\nFontSize->14]\)", "\!\(\*
StyleBox[\"By\",\nFontSize->14]\)"},
PlotStyle -> Thickness[0.004],
AxesStyle -> Thickness[0.003]]