3

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

这是我的方程式

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

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. 
4

1 回答 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

并在示例中用 like 包装它vpa,而不是用double.

于 2013-01-13T21:12:35.290 回答