+1 (208) 254-6996 essayswallet@gmail.com
  

We want to fit two Least Squares polynomials to the 20-point data on the left. Notice that the interval of interest is [-p,p]. Matlab.

x-valuesy-values
-3.141592653589790.00000000000000
-2.81089869005402-0.43702230525987
-2.48020472651826-0.78170987707147
-2.14951076298249-0.85207605602719
-1.81881679944672-0.52335935447908
-1.488122835910950.22121102681686
-1.157428872375191.27130734031775
-0.826734908839422.41089249371528
-0.496040945303653.37539264122665
-0.165346981767883.92749194128624
0.165346981767883.92749194128624
0.496040945303653.37539264122665
0.826734908839422.41089249371528
1.157428872375191.27130734031775
1.488122835910950.22121102681686
1.81881679944672-0.52335935447908
2.14951076298249-0.85207605602719
2.48020472651826-0.78170987707147
2.81089869005402-0.43702230525987
3.141592653589790.00000000000000
We want to fit two Least Squares polynomials to the 20-point data on the left. Notice that the interval of interest is . You will have to cut and paste the data into your computer program.Part-IGoal: Approximate the data by a 4th degree polynomial,P4(x) = ao+ a1x+ a2x2+ a3x3+ a4x4 and write your coefficients in the space provided. Round your final answers to 4 decimal digits. Also plot the data points and the curve y= P4(x) together, in the spaces provided below. Do not connect the data points.Part-IIGoal: Approximate the data by a Trig Polynomial,S3(x)=a0/2+(a3/2)Cos3x+a1Cosx+a2Cos2x+b1Sinx+b2Sin2x and write your coefficients in the space provided. The final answers must be rounded to 4 decimal digits. Notice that the forms of ao and a3 are compatible with our book and well suited for Cooley-Tukey Fast Fourier Transform. Also plot the data points and the curve y= S3(x) together, in the spaces provided below. Do not connect the data points.

Your output/notes should be printed below:

Don't use plagiarized sources. Get Your Custom Essay on
Project-Least-Squares-And-FourierSeries
Just from $13/Page
Order Essay

(a) Print the Coefficients for Part-I here, rounded to 4 decimal digits:

ao =a1=a2=a3=a4=

(b) Print the Coefficients for Part-II here, rounded to 4 decimal digits:

=a1=a2==b1=b2=

(c) Plot the graph for Part-I here, For full credit, your graph should be labelled properly.

(d) Plot the graph for Part-II here, For full credit, your graph should be labelled properly.

e) Your notes for Part-I must be typed up here. Any assumptions, equations, techniques that you used.

f) Your notes for Part-II must be typed up here. Any assumptions, equations, techniques that you used.

Order your essay today and save 10% with the discount code ESSAYHELP