MATH 417- Midterm Exam Guide - Comprehensive Notes for the exam ( 88 pages long!)

83 views88 pages
13 Oct 2017
Department
Course
Professor

Document Summary

Study guide function xx = adaptivequad(a, b, eps, n) %a=left endpoint, b=right endpoint, eps=tolerance, n=maximum # of levels. %returns xx=quadrature points. format long; delta = b-a; segma = 0; h = delta/2; c = (a+b)/2; k = 1; V(1, :)=[a h a c b s]; bb=[]; end end while( k>=1 && k <=n) h=v(k, 2)/2; S2 = (v(k,4)+ 4*z + v(k,5))*h/3; if(abs(s1+s2-v(k,6))=n) fprintf("error\n") % failure break; end. V(k, :) = [v(k,1) h v(k,3) y v(k,4) s1]; k=k+1; V(k, :) = [v(k-1,1)+2*h h v(k-1,5) z vbar s2]; end segma+sum(v(1:k,6)) xx=[bb; v(1:k, 1)]; plot(xx, f(xx),"o") axis([a b min([f(a);f(b);f(xx)]) max([f(a);f(b); f(xx)])]) pause function f = f(x) f=cos(x); end. Guaranteed convergence under slight restrictions => f is continuos and in a closed and bounded interval. (cid:12254) (cid:12254)

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related textbook solutions

Related Documents

Related Questions