symbolic integral from parametric function?
29 次查看(过去 30 天)
显示 更早的评论
I have a function which I want to get the integral from 0 to Inf but it is in parametric format and the only variable is w (inside the integral we will have dw) but there are lots of errors would you please help me:
clc
clear all
close all
syms k x y t
my_fun =@(w) (-2.*w+(2-(k+1)./w).*(1-(w.*y)-k)).*(exp(-w.*y)).*(exp(1j.*(w.*(x-t))));
q = int(my_fun,0,Inf)
0 个评论
回答(1 个)
Star Strider
2016-1-14
This didn’t generate any errors, but it didn’t produce any useful output, either:
syms k x y t w
my_fun(w) = (-2.*w+(2-(k+1)./w).*(1-(w.*y)-k)).*(exp(-w.*y)).*(exp(1j.*(w.*(x-t))));
q = int(my_fun, w, 0, Inf)
q =
int(-exp(-w*y)*exp(-w*(t - x)*1i)*(2*w - ((k + 1)/w - 2)*(k + w*y - 1)), w, 0, Inf)
You will need to evaluate this numerically to get useful results.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!