Integrate a FunctionUsing Simpson’s Integration in MATLAB

$21.00$11.50631 reads

Question

This problem involves developing a program to numerically differentiate a functionusing central differences.

a) Develop a script & supporting functions that performs the following

a. Evaluates the function f(x) at 200 points between 0 and 10.

Integrate a FunctionUsing Simpson’s Integration in MATLAB

b. Computes the derivative of f(x) using central differences.

c. Plots the derivative, and the analytical result for the derivative in a figure.

   Hint: Wolfram Alpha can calculate the derivative of a function using the D function. For example, D[x^2,x] = 2x.

d. Compute and display the mean square error between the numerical derivative and the analytical derivative. The MSE is computed by averaging the square of the error

    at each point.

 

Summary

This question belongs to MATLAB software and discusses about integrate a functionusing Simpson’s integration in MATLAB.

 

 

 

 

Add to Cart