When using the code below:
function [Df]=difc(f,u,h)syms xx=u+h; lp=eval(f);x=u-h; ll=eval(f);Df=(lp-ll)/(2*h);end
, the same error keeps appearing ''Undefined function 'eval' for input arguments of type 'double'.''
I would like to know what´s the problem and what can I do to solve it, in order to have a working code.
Thankyou very much
Best Answer