This preview shows page 1. Sign up to view the full content.
Unformatted text preview: fx dfx Ea fprintf ('i xi f(x) f(x) Ea\n') for r = (1:4) fprintf('%3d %8.6f %8.5f %8.6f %7.3f\n', i(r,1), xi(r,1), fx(r,1), dfx(r,1), Ea(r,1)) end e function new1 = F(x) f new1 = 8*sin(x)*exp(-x) - 1; n end e function new2 = DF(x) f new2 = 8*exp(-x)*(cos(x)-sin(x)); n 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.
- Spring '09