mathematica解微分方程如何查看解的数值 10
LaneEmdenSolution[n_]:=Module[{x,y,eps=$MachineEpsilon},NDSolve[{xy[x]^n+2y'[x]+xy''[...
LaneEmdenSolution[n_] := Module[{x, y, eps = $MachineEpsilon}, NDSolve[{x y[x]^n + 2 y'[x] + x y''[x] == 0, y[eps] == 1, y'[eps] == 0}, y, {x, eps, 10}][[1, 1, 2]]];soln = LaneEmdenSolution[#][x] & /@ Range[0, 5];
Plot[soln, {x, 0, 10}, Method -> Evaluated, PlotStyle -> {Black, Red, Yellow, Green, Blue, Purple}, PlotRange -> {-0.5, 1}, AxesLabel -> {\[Xi], \[Theta][\[Xi]]}]
结果soln中的数值如何查看?
如何求每条线与x轴交点的x值? 展开
Plot[soln, {x, 0, 10}, Method -> Evaluated, PlotStyle -> {Black, Red, Yellow, Green, Blue, Purple}, PlotRange -> {-0.5, 1}, AxesLabel -> {\[Xi], \[Theta][\[Xi]]}]
结果soln中的数值如何查看?
如何求每条线与x轴交点的x值? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询