symbolic integral from parametric function?
28 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Star Strider
il 14 Gen 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 Commenti
Vedere anche
Categorie
Scopri di più su Calculus in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!