forward_415 - f ForwardE = ((150*2 - 12)*h)/2 F BackwardE =...

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

View Full Document Right Arrow Icon
%Problem 4.15 % function forward_415 f format short; f h = .2; h x = 2; x true = dF(2) t forward = (F(x+h)-F(x))/h f Errorf = forward - true E backward = (F(x)- F(x-h))/h b Errorb = true - backward E center = (F(x+h)-F(x-h))/(2*h) c Errorc = center - true E fprintf ('|E| based on remainder term in Taylor series:')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: f ForwardE = ((150*2 - 12)*h)/2 F BackwardE = ((150*2 - 12)*h)/2 B Centere C end e function new = F(x) f new = 25*x^3 - 6*x^2 + 7*x - 88; end e function new2 = dF(x) f new2 = 75*x^2 - 12*x + 7; end...
View Full Document

This note was uploaded on 09/21/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.

Ask a homework question - tutors are online