Question: Given a function: f ( x ) = x ^ 4 - 7 . 2 x ^ 3 + 1 5 . 8 x -
Given a function:
fx xxx
Calculate numerically the integral value of the function within the interval Your method must have variable number of sub intervals n Your script must include the following line
n inputEnter n;
The exact value of the integral is Use three different methods:
a Riemann sum right rule
b Trapezoidal rule
c Simpsons method rule.
d calculate relative error for each method
error calculated exact ;
Is my MATLAB code right? What is supposed to be the M and Mend value for Simpsons rule? I am getting an incorrect value for Simpsons rule.
The command window gives me:
S
S
S
Error
Error
Error
S must be closest to and error must be the smallest, but it's not. Therefore it's incorrect. What should my M values be changed to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
