symbolic integral from parametric function?

29 visualizaciones (últimos 30 días)
Raha Shabani
Raha Shabani el 13 de En. de 2016
Respondida: Star Strider el 14 de En. de 2016
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)

Respuestas (1)

Star Strider
Star Strider el 14 de En. de 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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by