hw10 - a.8611363116 b...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% % HW 11 % clear; format long; f %1a a=1; b=1.5; ffun = inline('x^2*log(x)','x'); ans1a = [b-a]/2*feval(ffun,((b-a)/sqrt(3)+b+a)/2)+[b-a]/2*feval(ffun,(-(b- a)/sqrt(3)+b+a)/2) a %2a ans2a = [b-a]/2*[5/9*feval(ffun,((b-a)*sqrt(.6)+b+a)/2)+8/9*feval(ffun, (b+a)/2)+5/9*feval(ffun,(-(b-a)*sqrt(.6)+b+a)/2)] ( %3a ans2a = [b-a]/2*[.3478548451*feval(ffun,((b-
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a)*.8611363116+b+a)/2)+.6521451549*feval(ffun,((b-a)*.3399810436+b+a)/2)+.6521451549*feval(ffun,(-(b-a)*.3399810436+b+a)/2)+.3478548451*feval(ffun,(-(b-a)*.8611363116+b+a)/2)] a ans1a = a 0.192268706370918 ans2a = a 0.192259377256879 ans2a = a 0.192259357804156...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online