- Declare constants and variables. Use syms to declare a symbolic variable.
- Built the expression under integral.
- Use vpaintegral function to compute definite integral.
Info
此问题已关闭。 请重新打开它进行编辑或回答。
help ㅜㅜㅜㅜㅜ Convert formulas to Mathlab code
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Guru Mohanty
2020-5-8
You can define this integral using following steps:
Here is sample code for it.
k0=1;x=1;y=1;z0=1;
syms u
expr = cosh(u)^2 * cos(k0*x*cosh(u)) * cos(k0*y*cosh(u)*sinh(u)) * exp(-k0*(cosh(u*z0))^2);
out= vpaintegral(expr,u,[0,inf]);
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!