Double Integral using ymax and ymin
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ikenna Iwudike
am 22 Apr. 2022
Beantwortet: Star Strider
am 22 Apr. 2022
I'm having trouble trying to integrate this function. My y bounds are ln(x)/x to 1/x. my x bounds are 1 to e.
F = @(x,y)exp(x*y);
ymin = @(x)log(x)/x;
ymax = @(x)1/x;
q = integral2(F,1,exp,ymin,ymax)
0 Kommentare
Akzeptierte Antwort
Star Strider
am 22 Apr. 2022
Use element-wise operations for the multiplications and divisions in the anonymous functions. Also exp must have an argument.
Try this —
F = @(x,y)exp(x.*y);
ymin = @(x)log(x)./x;
ymax = @(x)1./x;
q = integral2(F,1,exp(1),ymin,ymax)
Make appropriate changes to get the desired result.
.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!