Question: Please provide matlab code to solve this. Thank you. 3. (10 points) Computer project: find a least square polynomial approxima- tion of f(0) = H2)

Please provide matlab code to solve this. Thank you.
3. (10 points) Computer project: find a least square polynomial approxima- tion of f(0) = H2) (the heaviside function on the interval (-1,1], min | [f(t) Pa(2)]?d1. Use the composite Trapezoid rule with 100 quadrature points to approx- imate the integrals. Show the graphs of approximating polynomials for n = 10,20,30. Compare them to the graph of f(x). 3. (10 points) Computer project: find a least square polynomial approxima- tion of f(0) = H2) (the heaviside function on the interval (-1,1], min | [f(t) Pa(2)]?d1. Use the composite Trapezoid rule with 100 quadrature points to approx- imate the integrals. Show the graphs of approximating polynomials for n = 10,20,30. Compare them to the graph of f(x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
