function [fval,fpval] = mynfunc(x) % function fval = mynfunc(x) % Test function for Newton's method % Kartik Sivaramakrishnan % Department of Mathematics % North Carolina State University % August 27, 2007 fval = x^3 + 4*x^2 - 10; fpval = 3*x^2 + 8*x;