TASK: Evaluate a formula.
COMMENT: Consider the following function:
1 1 y = ---------------- + ---------------- - 6 (x-0.3)^2 + 0.01 (x-0.9)^2 + 0.04
INSTRUCTIONS:
Use MATLAB's input() statement to request a value for "x". Evaluate the formula for y. Report, using the statement fprintf ( '%g %g\n', x, y );
SUBMIT: Your work should be stored in a script file called "hw005.m". Your script file should begin with at least three comment lines:
% hw005.m % YOUR NAME % This script (describe what it does) % Add any comments here that you care to make.If this problem is part of an assignment, then submit it to Canvas.