PYTHON/JUPYTER NOTEBOOKS given the attached fourier data : # Measurements of fourier data data = [ [-2.00, -9.37], [-1.00, 10.00], [-1.14, 10.83], [-0.29, -13.88], [0.00, -18.00], [0.57, -1.83], [1.00, 14.00], [1.43, 14.5], [2.00, 0.00], [2.29, -1.38], [3.00, 28.00], [3.14, 35.64], [4.00, 37.88], [5.00, -23.00], [4.86, -17.52], [5.71, -14.63], [6.00, -1.00], [6.50, -15.00], [6.57, -1.73], [7.00, 12.00], [7.43, 5.97], [7.50, 2.00], [8.29, 22.78], [9.00, 1.00], [9.14, -6.41], [10.0, -9.37] Fit the data with the linear least-squares fit method using Fourier basis functions. Use 10 pairs of sines and cosines and create the plots/results below. Explain the procedure and results. Results : x_vec = [ 4.995 -1.624 9.339 -10.278 -11.465 4.794 7.555 -14.394 1.139 -2.097 0.597 0.421 3.29 6.218 0.639 0.823 -5.083 -2.538 -0.87 -0.107 1.576] Local Relative Error (discarding y values < 0.1): mean [%] = 21.79 std [%] = 94.20 max, min [%] = 390.26, -74.18 discarding |?| values < 0.1
PYTHON/JUPYTER NOTEBOOKS
given the attached fourier data :
# Measurements of fourier data
data = [
[-2.00, -9.37], [-1.00, 10.00], [-1.14, 10.83], [-0.29, -13.88],
[0.00, -18.00], [0.57, -1.83], [1.00, 14.00], [1.43, 14.5],
[2.00, 0.00], [2.29, -1.38], [3.00, 28.00], [3.14, 35.64],
[4.00, 37.88], [5.00, -23.00], [4.86, -17.52], [5.71, -14.63],
[6.00, -1.00], [6.50, -15.00], [6.57, -1.73], [7.00, 12.00],
[7.43, 5.97], [7.50, 2.00], [8.29, 22.78], [9.00, 1.00],
[9.14, -6.41], [10.0, -9.37]
Fit the data with the linear least-squares fit method using Fourier basis functions. Use 10 pairs of sines and cosines and create the plots/results below. Explain the procedure and results.
Results :
x_vec = [ 4.995 -1.624 9.339 -10.278 -11.465 4.794 7.555 -14.394 1.139 -2.097 0.597 0.421 3.29 6.218 0.639 0.823 -5.083 -2.538 -0.87 -0.107 1.576]
discarding |?| values < 0.1
Thank You
![Power [y au]
8
7
6
2
1
0
Power Spectrum N = 10
4
Cycle Frequency (wk = kµ/2π) [cycles/period]
10](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Faac0f6cd-6ab1-4fb9-8b49-ef0c225cb05e%2F5758966b-9221-4c6c-9d23-1f12d2c42c69%2Fwmcwua2_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)