how to integrate the function?
1 次查看(过去 30 天)
显示 更早的评论
can someone help me with the integration.I tried int(f,t',o,t), but this does not seem to be working. Are there any possible ways to solve the integration. Here theta, tc, vx,w etc are constants.
0 个评论
回答(1 个)
Walter Roberson
2021-6-13
syms theta t__c t_prime x v__x y omega t
part1 = 1/(1+2*t_prime/t__c)
part2 = exp(-2*((x-v__x*t_prime).^2 + y.^2)/((1+2*t_prime/t__c)*omega^2))
part3 = exp(-2*(v__x*t_prime)^2 / ((1+2*t_prime/t__c)*omega^2))
del_theta = theta/(2*t__c) * int(part1 * (part2 - part3), t_prime, 0, t)
I suspect that you are hoping for a closed form solution. It is unlikely that a closed form solution exists.
2 个评论
Walter Roberson
2021-6-13
You are not likely to be able to find a closed form solution.
If you split the integration into two integration, then the first one can be rewritten to have the form
syms b c t T
int(exp(t^2/(b*t + c)), t,0,T)
MATLAB cannot resolve it. Maple cannot resolve it. Mathematica cannot resolve it.
You could experiment with approximations, such as taking a taylor series of the inside of the integral and integrating that. However, in practice it leads to some really large numbers -- order 10 expansion leads to a lot of values in the 10^510 range for example.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!