function project_5_skh() % PROJECT_5_SKH project_5_skh() is the driver function for a program % that approximates the derivative of a continuous function at a point % % Name: User Name % Date: 27 September 2016 % Class: CMPSC 200 % % Description: Approximate the derivative of a continuous function at a point % % Print the splash screen programmersName = 'Enter User Name'; submissionDate = '27 Sept
...[Show More]
function project_5_skh() % PROJECT_5_SKH project_5_skh() is the driver function for a program % that approximates the derivative of a continuous function at a point % % Name: User Name % Date: 27 September 2016 % Class: CMPSC 200 % % Description: Approximate the derivative of a continuous function at a point % % Print the splash screen programmersName = 'Enter User Name'; submissionDate = '27 September 2016'; programDescription = 'Approximate the derivative of a continuous function at a point'; printHeader(programmersName, submissionDate, programDescription); % Use getFunction to have the user enter the function then plot it fun = getFunction(); % Prompt for the max, min, and the single point using a single input % function minX = input('Enter the min: '); maxX = input('Enter the max: '); x0= input('Enter the single point: '); % Calculate the derivative m = rateOfChange(fun, x0);
[Show Less]