>> f='exp(x)*sin(x)' >> df=diff(f,'x') >> numeric(subs(df,1.9,'x'))
>> x=[1.9 1.9 1.9 1.9 1.9 1.9 1.9 1.9 1.9]; >> del=[.05 .05/2 .05/4 .05/8 .05/16 .05/32 .05/64 .05/128 .05/256]; >> xplus=x+del; >> f=exp(x).*sin(x); >> fplus=exp(xplus).*sin(xplus); >> num=fplus-f; >> deriv=num./del;