% % Written by: % -- % John L. Weatherwax 2009-04-21 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- addpath('../../BookCode'); close all; clc; clear; % Problem EPage 81; Example EPage 66 % d_1 = diffgen('c_4_p_2_fn', 1, 3.1, 0.001 ); d_2 = diffgen('c_4_p_2_fn', 1, 3.01, 0.001 ); d_3 = diffgen('c_4_p_2_fn', 1, 3.001, 0.001 ); d_4 = diffgen('c_4_p_2_fn', 1, 3., 0.001 ); disp( sprintf( 'D(x=3.1)= %10.4f; D(x=3.01)= %10.4f; D(x=3.001)= %10.4f; D(x=3)= %10.4f; ', d_1, d_2, d_3, d_4 ) );