最近看一篇文章,上面用Matlab解微积分(如图),本人对此不精,及将计Matlab代码写出,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/18 03:18:40
最近看一篇文章,上面用Matlab解微积分(如图),本人对此不精,及将计Matlab代码写出,
最近看一篇文章,上面用Matlab解微积分(如图),本人对此不精,及将计Matlab代码写出,
最近看一篇文章,上面用Matlab解微积分(如图),本人对此不精,及将计Matlab代码写出,
fun=@(x,z)[-(3.5+z)./((cos(x)).^2)./((1.53419*cos(x)-(cos(x)).^0.5)./(1.53419*sin(x)-(1-cos(x)).^0.5)+tan(x))];
[x,z]=ode45(fun,[0:pi/50:pi/2],[0]);
format long g
[(3.5+z).*tan(x) z]
ans =
0 0
0.21952918729686 -0.0106834879727586
0.436774261310336 -0.0425757121360066
0.649499304963236 -0.0952054075773036
0.855562686505135 -0.16780333978953
1.0529608925921 -0.259319595579935
1.23986585002345 -0.368456329249243
1.41465868166176 -0.493697273372811
1.57595509860154 -0.633348317625633
1.72262309355712 -0.785580346794788
1.85379707608568 -0.948467220253342
1.96887763157689 -1.12003578005727
2.06753463794048 -1.29829923446831
2.14969400943513 -1.481302956759
2.21552768117099 -1.66715610384179
2.26543878334248 -1.85406237930897
2.30003850152453 -2.04035118183801
2.32013522781453 -2.22449486479263
2.32672130483693 -2.40512806160818
2.32094320760718 -2.58107357727949
2.30415777543349 -2.75133375553346
2.27798945259468 -2.91511171919572
2.24293835680401 -3.07213662549229
2.20613202464519 -3.22130071255652