From 679e451ed4477a5412142aba93d153ccad8aba34 Mon Sep 17 00:00:00 2001 From: Andrew Cumming Date: Sat, 7 Oct 2023 09:35:15 -0400 Subject: [PATCH] Update polymonial fit notebook --- polynomial_fit.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polynomial_fit.ipynb b/polynomial_fit.ipynb index 0e06c26..f497178 100644 --- a/polynomial_fit.ipynb +++ b/polynomial_fit.ipynb @@ -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." ] } ],