function [y,dy]=testfunc01(x) % Test function for Newton's Method, exp(x)-3x on [0,1]. % Outputs the value of the function and the value of the derivative. y=exp(x)-3*x; dy=exp(x)-3;