Calculate integral from eular formula
1 次查看(过去 30 天)
显示 更早的评论
How to use matlab to calculate this integral:integral(x=-10 to 0) sin(x) exp(x) exp(-ix) + integral(x = 0 to 10) sin(x) exp(-x) exp(-ix)
1 个评论
John D'Errico
2021-8-9
PLEASE STOP ASKING THIS SAME QUESTION. This is the 9'th time you have asked it.
You are now becoming a spammer on the site.
回答(1 个)
Walter Roberson
2021-8-8
syms x
part1 = int(sin(x)*exp(x)*exp(-1i*x), x, -10, 0)
part2 = int(sin(x)*exp(-x)*exp(-1i*x), x, 0, 10)
overall1 = simplify(part1 + part2)
or...
syms x
overall2 = simplify(int(sin(x)*exp(-abs(x))*exp(-1i*x), x, -10, 10))
isAlways(overall1 == overall2)
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!