Question: Please show the steps done in matlab Lab Assignment 2 3.62)/3.07)+1)2) (1+2(X-3.62)/3.07) 5.79) to Matlab by using handles to functions of functions like function h
Lab Assignment 2 3.62)/3.07)+1)2) (1+2(X-3.62)/3.07) 5.79) to Matlab by using handles to functions of functions like function h below. g (x) 3x h= @(x) g(f(x) ) ; h(3) ans 27 (1) Plot (X, F(X)) so we can see all three roots. (2) Choose three pairs of XI and Xu from your fngure and use options-optimset('display', iter); fzeor F, [XI Xu], options) to find the three roots. Check if they are correlated with the roots in your figure. (3) Find the first, second, third and fourth derivative functions of FX) from (1) by using "difr" (see below): dir,-differentiate symbolic expression or function Syntax and Description: diff (E.var) differentiates & with respect to the variable var. diff (Evat)computes the nth derivative of r with respect to the variable var. Examples: Find the derivative of the function sin (x*2). yE f(x) f (x) sin(x2): ar," diff(sas) dE (x) - 2*x*cos (x 2) Find the value of the derivative at x 2. Convert the value to double. 4*cos (4) double (df2) ans
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
