(Solved) : Given X 0 025 05 075 101 F X 0 00 15101 102 03167 05958 Write Matlab Program 1 Ev Aluate I Q29301486 . . .
![Given x = [0 , 025, 0.5 , 075, 1.01, f(x)-|0 ,0.0 151.0.1 102, 0.3167, 0.5958] Write a Matlab program to 1) Ev aluate the integral of fo) in the interval 10.1) using the composite trapezoidal rule with n-4 segments. Return the integral in the output variable 11 2) Evaluate the integral of fo) in the interval (0,1] using the composite Simpson 1/3 rule with n-4 segments. Return the integrat in the output variable 12 3) Evaluate the integral of f(Xr21n the interval 0.1 using the composite trapezoidal rule with n=4 segments. Return the integral in the output a ables 4) Evaluate the integral of (o) 2 in the interval [O, 1] using the composite Simpson 1/3 rule with n-4 segments. Return the integral in the output variable 14 Your Function function [11, I2, 13,I4] Integration) a XOutput: 41 % 11: complgite Trapezoidal Rule for f(x) I2: Composite Simpson Rule for f(x) 13: Composite Trapezoidal Rule for f(x)2 14: composite simpson Rule for f(x)2 6% WRITE YOUR CODE BELOW](https://d2vlcm61l7u1fs.cloudfront.net/media%2Fc9a%2Fc9a3e294-cee4-478a-ac36-85fc85e08d51%2FphpXCHno2.png)
Given x = [0 , 025, 0.5 , 075, 1.01, f(x)-|0 ,0.0 151.0.1 102, 0.3167, 0.5958] Write a Matlab program to 1) Ev aluate the integral of fo) in the interval 10.1) using the composite trapezoidal rule with n-4 segments. Return the integral in the output variable 11 2) Evaluate the integral of fo) in the interval (0,1] using the composite Simpson 1/3 rule with n-4 segments. Return the integrat in the output variable 12 3) Evaluate the integral of f(Xr21n the interval 0.1 using the composite trapezoidal rule with n=4 segments. Return the integral in the output a ables 4) Evaluate the integral of (o) 2 in the interval [O, 1] using the composite Simpson 1/3 rule with n-4 segments. Return the integral in the output variable 14 Your Function function [11, I2, 13,I4] Integration) a XOutput: 41 % 11: complgite Trapezoidal Rule for f(x) I2: Composite Simpson Rule for f(x) 13: Composite Trapezoidal Rule for f(x)”2 14: composite simpson Rule for f(x)2 6% WRITE YOUR CODE BELOW Show transcribed image text
Expert Answer
Answer to Given X 0 025 05 075 101 F X 0 00 15101 102 03167 05958 Write Matlab Program 1 Ev Aluate I Q29301486 . . .
OR