This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: x=linspace(a,b,m); w1 = NCweights(m); pVal=HornerN(d,x,z); NUM1=0; for i=1:(length(w1)-1) numI1(i) = pVal(i)*w1(i); NUM1=NUM1+numI1(i); end NUM2=NUM1*(b-a) M=e(length(w1)+1)*(factorial(m-1)) Error=0; Error= NCerror(a,b,m,M) Note: I can’t seem to get the error function to work correctly. I think my Derivative Bound is wrong....
View Full Document
This document was uploaded on 02/18/2011.
- Spring '11