f(x) = (a + 1)e(x-(d+5))/(b + c + 1) 1B) Write clear variables to begin the exercise, then proceed to the following problem. Consider y = : f(x) above over the interval [d, d+ 10]. Use a for loop combined with a sum command to get a left-hand estimate and a right-hand estimate of the area between the function and the x-axis over the interval above. Assume that you will have 20 subrectangles for both estimates. Declare your results P1Bleft and P1Bright. = 1C) Write clear variables on a line in your script after your answers for 1B, then proceed to the following problem. Use the int command to get an antiderivative of y f(x), i.e. use MATLAB to compute the indefinite integral ff(x) dx. Hint: the output should contain the Gauss error function; so, if the output looks suspicious, it is probably okay. Declare your result as P1C. 1D) Use the int command to evaluate the definite integral d 10f(x) dx. Hint: the output should look like the previous problem. Declare your result as P1D. 1E) Use the vpa command to get a numerical approximation to the definite integral ♫d + ¹0f(x) dx. Hint: the output should be a decimal answer close to what you found in 1B. Declare your result as P1E.

icon
Related questions
Question
100%

a=3 b=7 c=7 d=17

f(x) = (a + 1)e - (x - (d + 5))²/(b + c + 1)
1B) Write clear variables to begin the exercise, then proceed to the following problem. Consider y = f(x) above
over the interval [d, d + 10]. Use a for loop combined with a sum command to get a left-hand estimate and a
right-hand estimate of the area between the function and the x-axis over the interval above. Assume that
have 20 subrectangles for both estimates. Declare your results P1Bleft and P1Bright.
you will
=
1C) Write clear variables on a line in your script after your answers for 1B, then proceed to the following
problem. Use the int command to get an antiderivative of y f(x), i.e. use MATLAB to compute the indefinite
integral ff(x) dx. Hint: the output should contain the Gauss error function; so, if the output looks suspicious, it
is probably okay. Declare your result as P1C.
10,
1D) Use the int command to evaluate the definite integral ♫d + ¹0f(x) dx. Hint: the output should look like the
previous problem. Declare your result as P1D.
d + 10,
1E) Use the vpa command to get a numerical approximation to the definite integral d f(x) dx. Hint: the
output should be a decimal answer close to what you found in 1B. Declare your result as P1E.
Transcribed Image Text:f(x) = (a + 1)e - (x - (d + 5))²/(b + c + 1) 1B) Write clear variables to begin the exercise, then proceed to the following problem. Consider y = f(x) above over the interval [d, d + 10]. Use a for loop combined with a sum command to get a left-hand estimate and a right-hand estimate of the area between the function and the x-axis over the interval above. Assume that have 20 subrectangles for both estimates. Declare your results P1Bleft and P1Bright. you will = 1C) Write clear variables on a line in your script after your answers for 1B, then proceed to the following problem. Use the int command to get an antiderivative of y f(x), i.e. use MATLAB to compute the indefinite integral ff(x) dx. Hint: the output should contain the Gauss error function; so, if the output looks suspicious, it is probably okay. Declare your result as P1C. 10, 1D) Use the int command to evaluate the definite integral ♫d + ¹0f(x) dx. Hint: the output should look like the previous problem. Declare your result as P1D. d + 10, 1E) Use the vpa command to get a numerical approximation to the definite integral d f(x) dx. Hint: the output should be a decimal answer close to what you found in 1B. Declare your result as P1E.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer