
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
analytical and numerical integration of a double integral
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!
clc, clear all format long
%% part a syms x y I=int(int(log(yyx)cos(exp(x^(1/2)))/(xxyyy+5),x,y,-yy+4*y-2),y,1,2); % We have obtained an analytical result. I is a symbolic number. If=double(I) % Converting I to double-precision floating-point number
%% part b % change variables to use integral2 function f = @(x,y) log(x.^2.y).cos(exp(y.^(1/2)))./(y.^2.x.^3+5); ymin=@(x) x; ymax=@(x) -x.^2+4x-2; xmin=1; xmax=2; In=integral2(f,xmin,xmax,ymin,ymax,'Method','iterated')