Matlab 中的符号积分

问题描述 投票:0回答:1

我只是想在 matlab 中求解方程,但它确实给了我一个警告。 “警告无法找到显式积分” 经过一番搜索后,人们建议用 Double() 方法包装我的方程,但即使如此,我还是收到了错误的答案(ans=0),我在mathematica/maple上计算为4.62240566。

this is my equation

我认为它与浮点有关,但我不太确定如何修复它

syms t
int( (t^2+100)^(-1/2)*exp(-10^-3*(t^2 + 100)^(1/2)),t , 1, Inf) 
   Warning: Explicit integral could not be found. 
matlab symbolic-math symbolic-integration
1个回答
5
投票

据此判断http://www.mathworks.nl/help/symbolic/int.html您需要的代码是:

int(1/(exp(1000*(t^2 + 100)^(1/2))*(t^2 + 100)^(1/2)), t , 1,Inf)

或者也许你可以使用

t == 1..inf

并像示例中那样用

vpa
包裹它,而不是用
double

© www.soinside.com 2019 - 2024. All rights reserved.