推扬网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
推扬网 门户 你问我答 查看内容

王敏学:matlab中积分问题

2020-8-12 13:14| 发布者: admin| 查看: 62| 评论: 0

摘要: 王佳敏的回答: no need to use simpson for integration. since simpson is a numerical method, you just pass the initial value,final value to the fucntion, that is enough.. 苏世明的回答: no need to use ...

王佳敏的回答:

no need to use simpson for integration. since simpson is a numerical method, you just pass the initial value,final value to the fucntion, that is enough..

苏世明的回答:

no need to use simpson for integration. since simpson is a numerical method, you just pass the initial value,final value to the fucntion, that is enough..

糯米鸡的回答:

你的这个问题,错在这一句:t=b.^2*pi^2*10^(-3)*r^4*0.25.*p/(r^2+p.^2); “b.^2*pi^2*10^(-3)*r^4*0.25.*p” 是个向量吧?“r^2+p.^2”也是向量吧? 那应该用“./”呀,你前面都用了,怎么到这儿粗心了呢。 改一下就可以了:t=b.^2*pi^2*10^(-3)*r^4*0.25.*p./(r^2+p.^2); 你后面的运算没有报错,是因为用“/”也能算出t的值来的 相当于2个向量相除,解出的t值只有一个值,并不是个向量 而你后面再用t=t.*p;运算,相当于人为又把t变成向量了 但不是t本来的值。虽然没报错,但结果应该不是很准确 也有可能当r取一定值时,结果比较接近。 反正,我试了一下,2种积分的结果相差倒是不大,主要是不知道你b的定义。


鲜花

握手

雷人

路过

鸡蛋

最新评论

热门推荐
最新资讯

广告服务|投稿要求|禁言标准|版权说明|免责声明|手机版|小黑屋|推扬网 ( 粤ICP备18134897号 )|网站地图 | 邮箱:vayae@hotmail.com

GMT+8, 2025-5-1 20:36 , Processed in 0.060066 second(s), 29 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

返回顶部