mirror of
https://github.com/vale981/phys512
synced 2025-03-04 09:11:37 -05:00
Update polymonial fit notebook
This commit is contained in:
parent
4949272eee
commit
679e451ed4
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@
|
|||
"id": "b10f5bf9",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"> **Exercise**: Try changing the basis functions to Legendre polynomials and see how that improves the fit, both for the inversion and SVD methods. How do the results change when you change the number of data points and the order of the polynomial? Hint: You can use [`numpy.polynomial.legendre.legvander`](https://numpy.org/devdocs/reference/generated/numpy.polynomial.legendre.legvander.html) to generate the design matrix $\\mathbf{A}$ for you."
|
||||
"> **Exercise**: Try changing the basis functions to Legendre polynomials and see how that improves the fit, both for the inversion and SVD methods. How do the results change when you change the number of data points and the order of the polynomial? Check also how the condition number of the design matrix changes as a function of the polynomial degree when you change the polynomials you are using to fit. Hint: You can use [`numpy.polynomial.legendre.legvander`](https://numpy.org/devdocs/reference/generated/numpy.polynomial.legendre.legvander.html) to generate the design matrix $\\mathbf{A}$ for you."
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue