Question: function y1 funes (x) y = 0.5*exp (x/3)-x.^2.*sin(x) end function y2 = fun lg (x) WWWAAvon y = sin(x). *log (1+x) -x.^2 end Using fun_es

function y1 funes (x) y = 0.5*exp (x/3)-x.^2.*sin(x) end function y2 = fun lg (x) WWWAAvon y = sin(x). *log (1+x) -x.^2 end Using fun_es and fun_lg, now create a function f_es (x) that: - ask the name of the function to be evaluated - allow the user to type the name of the function - evaluate the function with feval and return the functional values and - stop if the function indicated by the user is neither fun_es nor fun_lg. Test your f_es by calculating fun_ (3) and fun_lg (3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
