Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. (15 points) (a) Fill in the values of the vector e to convert 'SUMMER' into TPQJAY >> x = SUMMER'; >> e= [1-5-4-3-u >>y-
3. (15 points) (a) Fill in the values of the vector e to convert 'SUMMER' into "TPQJAY >> x = SUMMER'; >> e= [1-5-4-3-u >>y- charxte) y = TPQJAY ? ]; ? Fill in values ? Resulting display (b) The statements below calculate the approximate area under the curve y = (x+1) , in the range 1 function and only two intervals. The quad function result is close to the exact area. x 5, using MATLAB's trapz x-1:2:5; y (x+1). 3/4; trapz(x, y), quad(x+1). 3/4', 1,5) What is the approximate percent error using trapz? % error (2 intervals) 21 Change the code and determine the percent error for four intervals. Show only the change in code % error (4 intervals) (c) Create and plot the function y f(x) -sin(x +3 sin(x+1) Choose enough points to get a smooth curve, and include a grid. From your plot, estimate the roots of the equation f(x)-0 in the given range of x. Roots: (there may be more than one)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started