Question: please do problems 1 2 and 3 in matlab code thank you 1. Write a function that implements the parabolic interpolation called parabolic_Iyourname].m. It should
please do problems 1 2 and 3 in matlab code thank you
1. Write a function that implements the parabolic interpolation called parabolic_Iyourname].m. It should have inputs for the function, 3 guesses, the stopping criterion, and max iterations. The program should output the x and f(x) for the minima, the number of iterations, and the approximate error. Upload the .m file to Canvas. 2. Find the maximum of f(x)=4x1.8x2+1.2x30.3x4 using: a. Golden-Section Method b. Parabolic interpolation c. fminbnd d. For each, copy the command window with all relevant commands and results and paste them into a word document to upload to canvas. 3. The total drag on an airfoil can be estimated using: D=0.01V2+0.95(VW)2 where the first term is due to friction and the second term is due to the lift. D=drag, W weight, V= velocity, and = ratio of air density at flight altitude to at sea level. Friction increases with velocity while drag due to lift decreases, and when combined there is a velocity of minimum drag: a. Determine the minimum drag and the velocity at which it occurs for W=16,000 and =0.6. Copy and paste the relevant commands and results from MATLAB. You may use any of the three functions from Problem 1. b. Plot the optimum velocity vs weight if you vary the weight from 12,000 to 20,000. Attach a copy of the graph to your homework, making sure to properly format and label the graph
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
