MAT 581 HW 4 P 4 1 4

MAT 581 HW 4 P 4 1 4 - err = abs(NUM-1);...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
P 4.1.4 disp(' m QNC(m) Error Error Bound') disp(' ') a=0;b=1; for m=2:7 x = linspace(a,b,m); w = NCweights(m); NUM=0; for i=1:length(w) numI(i) = (b-a)*((1/(1+(10.*x(i))))*w(i)); NUM=NUM+numI(i); end
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: err = abs(NUM-1); DerBound=factorial(m)*10^(m); errBound = NCerror(a,b,m,DerBound); s = sprintf('%20.16f %10.3e %10.3e',NUM,err,errBound); disp([ sprintf(' %2.0f ',m) s]) end...
View Full Document

This document was uploaded on 02/18/2011.

Page1 / 2

MAT 581 HW 4 P 4 1 4 - err = abs(NUM-1);...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online