题目
用mathematica求解如下二阶微分方程的数值解 输出最终的数值解并画图
用mathematica求解如下二阶微分方程的数值解和画图的程序代码
A*y (x) =
y'' (x)/{{1 + [y' (x)]^2}^(3/2)} +
y' (x)/{{1 + [y' (x)]^2}^(1/2)}
其中A=134708.边界条件 :1) y' (0) = 0; 2) y' (0.005) = cot58 (58 是角度)
x={0,0.005},步长是0.0001
用mathematica求解如下二阶微分方程的数值解和画图的程序代码
A*y (x) =
y'' (x)/{{1 + [y' (x)]^2}^(3/2)} +
y' (x)/{{1 + [y' (x)]^2}^(1/2)}
其中A=134708.边界条件 :1) y' (0) = 0; 2) y' (0.005) = cot58 (58 是角度)
x={0,0.005},步长是0.0001
提问时间:2021-04-01
答案
In[1]:=s = NDSolve[{134708*y[x] ==
y''[x]/(1 + (y'[x])^2)^1.5 + y'[x]/(1 + (y'[x])^2)^0.5,
y'[0] == 0,y'[0.005] == Cot[58*\[Pi]/180]},y,{x,0,0.005}]
Plot[Evaluate[y[x] /.s],{x,0,0.005},PlotRange -> All]
esol = Block[{\[Epsilon] = $MachineEpsilon},
NDSolve[{134708*y[x] ==
y''[x]/(1 + (y'[x])^2)^1.5 + y'[x]/(x*(1 + (y'[x])^2)^0.5),
y'[\[Epsilon]] == 0,y'[0.005] == Cot[58*\[Pi]/180]},
y,{x,\[Epsilon],0.005}]]
Plot[Evaluate[y[x] /.esol],{x,0.00001,0.005},PlotRange -> All]
y''[x]/(1 + (y'[x])^2)^1.5 + y'[x]/(1 + (y'[x])^2)^0.5,
y'[0] == 0,y'[0.005] == Cot[58*\[Pi]/180]},y,{x,0,0.005}]
Plot[Evaluate[y[x] /.s],{x,0,0.005},PlotRange -> All]
esol = Block[{\[Epsilon] = $MachineEpsilon},
NDSolve[{134708*y[x] ==
y''[x]/(1 + (y'[x])^2)^1.5 + y'[x]/(x*(1 + (y'[x])^2)^0.5),
y'[\[Epsilon]] == 0,y'[0.005] == Cot[58*\[Pi]/180]},
y,{x,\[Epsilon],0.005}]]
Plot[Evaluate[y[x] /.esol],{x,0.00001,0.005},PlotRange -> All]
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
热门考点
- 1小明的妈妈将2万元存入银行,定期二年,年利率是4.25%,到期需按20%的税率支付利息税,
- 2在一块长方形草地上,有一条宽1M的小路(如图),长是7M,宽是6M,求小路面积面积
- 3、“华侨终于回到了他十分酷爱的家乡.”病句类型、 是不是用词不当 要准确的
- 4fell from/fell
- 5将10、15、20、30、40、60填入下图圆圈内,使三角形每条边上3个数的积都相等.
- 6下列物质中不属于天然高分子化合物的是( ) A.纤维素 B.蛋白质 C.蔗糖 D.淀粉
- 7求不等式|x-1|+|y-1|≤2表示的平面区域的面积.
- 8用A,B,D,F,G,H,J,K,M,N,O,P,R,T,W,X,Z写几个好看的英语单词
- 9sin2x-2sinx+cosx-1=0的解
- 10一条150米路两旁各栽一行树起点终点都栽,共栽102棵.每相邻两棵间距离相等相邻两棵树之间的距离是多少米?