symbolic integral from parametric function?
29 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Star Strider
on 14 Jan 2016
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 Comments
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!