diff --git a/_images/0660bd34e97594b966a583017de4d4e47608932b35972595a4f78b84ae652fcc.png b/_images/0660bd34e97594b966a583017de4d4e47608932b35972595a4f78b84ae652fcc.png new file mode 100644 index 0000000..9d5ec43 Binary files /dev/null and b/_images/0660bd34e97594b966a583017de4d4e47608932b35972595a4f78b84ae652fcc.png differ diff --git a/_images/079acd8fa2efbe8c7d8fb5841d9163458cbbe0f78405e0b5362434a1d79461c3.png b/_images/079acd8fa2efbe8c7d8fb5841d9163458cbbe0f78405e0b5362434a1d79461c3.png new file mode 100644 index 0000000..600b5ee Binary files /dev/null and b/_images/079acd8fa2efbe8c7d8fb5841d9163458cbbe0f78405e0b5362434a1d79461c3.png differ diff --git a/_images/082224710de71aa42f1c4e98ebca3b9f7d4cf059bf5760f2e943af9d172f60c4.png b/_images/082224710de71aa42f1c4e98ebca3b9f7d4cf059bf5760f2e943af9d172f60c4.png new file mode 100644 index 0000000..c8fc965 Binary files /dev/null and b/_images/082224710de71aa42f1c4e98ebca3b9f7d4cf059bf5760f2e943af9d172f60c4.png differ diff --git a/_images/13fdad9f7337c30e4e0744e9af0abdbd68f663282c9160434cd892e2322b800e.png b/_images/13fdad9f7337c30e4e0744e9af0abdbd68f663282c9160434cd892e2322b800e.png deleted file mode 100644 index 50cd1bc..0000000 Binary files a/_images/13fdad9f7337c30e4e0744e9af0abdbd68f663282c9160434cd892e2322b800e.png and /dev/null differ diff --git a/_images/2163db2a5cd31e0241dd5a7330d26275c78d6479665958b8210d2cd90ed63617.png b/_images/2163db2a5cd31e0241dd5a7330d26275c78d6479665958b8210d2cd90ed63617.png new file mode 100644 index 0000000..1174e80 Binary files /dev/null and b/_images/2163db2a5cd31e0241dd5a7330d26275c78d6479665958b8210d2cd90ed63617.png differ diff --git a/_images/21eb4f509f3b727e26d3294cd8fff95754db5b33c22e386509b51c01827dc09b.png b/_images/21eb4f509f3b727e26d3294cd8fff95754db5b33c22e386509b51c01827dc09b.png deleted file mode 100644 index ae5322b..0000000 Binary files a/_images/21eb4f509f3b727e26d3294cd8fff95754db5b33c22e386509b51c01827dc09b.png and /dev/null differ diff --git a/_images/2f02587282a758c5e0133e9de68c50658d542b94f7ef1ccb2eb9290a1091ef85.png b/_images/2f02587282a758c5e0133e9de68c50658d542b94f7ef1ccb2eb9290a1091ef85.png new file mode 100644 index 0000000..83afcca Binary files /dev/null and b/_images/2f02587282a758c5e0133e9de68c50658d542b94f7ef1ccb2eb9290a1091ef85.png differ diff --git a/_images/34e8fe21acab92a2a16ffadf8b3520fd2720dc48017194f6e7a73537b3f0b89c.png b/_images/34e8fe21acab92a2a16ffadf8b3520fd2720dc48017194f6e7a73537b3f0b89c.png new file mode 100644 index 0000000..6d075fa Binary files /dev/null and b/_images/34e8fe21acab92a2a16ffadf8b3520fd2720dc48017194f6e7a73537b3f0b89c.png differ diff --git a/_images/3d6e6ff5655379beb2128c93d707b85e9c1295301b43e6c1d0b0b72828a6edaa.png b/_images/3d6e6ff5655379beb2128c93d707b85e9c1295301b43e6c1d0b0b72828a6edaa.png new file mode 100644 index 0000000..b251a0e Binary files /dev/null and b/_images/3d6e6ff5655379beb2128c93d707b85e9c1295301b43e6c1d0b0b72828a6edaa.png differ diff --git a/_images/4f07ece73dc0559a8a863f1726766e65569092195b260aae36a0db0fc2b9178e.png b/_images/4f07ece73dc0559a8a863f1726766e65569092195b260aae36a0db0fc2b9178e.png new file mode 100644 index 0000000..12f8511 Binary files /dev/null and b/_images/4f07ece73dc0559a8a863f1726766e65569092195b260aae36a0db0fc2b9178e.png differ diff --git a/_images/62c7656f5e73e631ba350c817a6f3c27c8a4dd99578133c72d4fff7284a96800.png b/_images/62c7656f5e73e631ba350c817a6f3c27c8a4dd99578133c72d4fff7284a96800.png deleted file mode 100644 index 96ce7c1..0000000 Binary files a/_images/62c7656f5e73e631ba350c817a6f3c27c8a4dd99578133c72d4fff7284a96800.png and /dev/null differ diff --git a/_images/7a1b77d531ba7fb9569773ace588d592561298f1207a20598f1b6fd86e670c40.png b/_images/7a1b77d531ba7fb9569773ace588d592561298f1207a20598f1b6fd86e670c40.png new file mode 100644 index 0000000..b67d1c4 Binary files /dev/null and b/_images/7a1b77d531ba7fb9569773ace588d592561298f1207a20598f1b6fd86e670c40.png differ diff --git a/_images/83a6da2bf5ffef4035d455408f67cd2a9e8203172ce3777d4cf15bdfed38e4c3.png b/_images/83a6da2bf5ffef4035d455408f67cd2a9e8203172ce3777d4cf15bdfed38e4c3.png new file mode 100644 index 0000000..5800c73 Binary files /dev/null and b/_images/83a6da2bf5ffef4035d455408f67cd2a9e8203172ce3777d4cf15bdfed38e4c3.png differ diff --git a/_images/89b889f854358bfb37f8730168ce9e4d96675d7821ef79719a9e846cd79e7baa.png b/_images/89b889f854358bfb37f8730168ce9e4d96675d7821ef79719a9e846cd79e7baa.png deleted file mode 100644 index d8f0e3f..0000000 Binary files a/_images/89b889f854358bfb37f8730168ce9e4d96675d7821ef79719a9e846cd79e7baa.png and /dev/null differ diff --git a/_images/975c3a72088dd27d21d8d35eeef41e1343eb97c272bf30f1f121395bfd2dd511.png b/_images/975c3a72088dd27d21d8d35eeef41e1343eb97c272bf30f1f121395bfd2dd511.png deleted file mode 100644 index 9f6a947..0000000 Binary files a/_images/975c3a72088dd27d21d8d35eeef41e1343eb97c272bf30f1f121395bfd2dd511.png and /dev/null differ diff --git a/_images/9cd67069f4b2902cf3d3ebc67197c324ea232a189d52fef4bb0a39da1ffe7b4c.png b/_images/9cd67069f4b2902cf3d3ebc67197c324ea232a189d52fef4bb0a39da1ffe7b4c.png new file mode 100644 index 0000000..8f09744 Binary files /dev/null and b/_images/9cd67069f4b2902cf3d3ebc67197c324ea232a189d52fef4bb0a39da1ffe7b4c.png differ diff --git a/_images/a63ed999b02c23d40ac7eae8edcd0018b57cdad9462a912325329f3b1126aa84.png b/_images/a63ed999b02c23d40ac7eae8edcd0018b57cdad9462a912325329f3b1126aa84.png deleted file mode 100644 index 90db147..0000000 Binary files a/_images/a63ed999b02c23d40ac7eae8edcd0018b57cdad9462a912325329f3b1126aa84.png and /dev/null differ diff --git a/_images/ad0a50622eb742a99bf52ab0594ef0c59e9efc146361c0ee76191b085f0d1ad5.png b/_images/ad0a50622eb742a99bf52ab0594ef0c59e9efc146361c0ee76191b085f0d1ad5.png deleted file mode 100644 index cd7495f..0000000 Binary files a/_images/ad0a50622eb742a99bf52ab0594ef0c59e9efc146361c0ee76191b085f0d1ad5.png and /dev/null differ diff --git a/_images/b68652521a8b4da67d5745351536e402bdaed4a488e228f9c7f081726969cd65.png b/_images/b68652521a8b4da67d5745351536e402bdaed4a488e228f9c7f081726969cd65.png deleted file mode 100644 index f405a60..0000000 Binary files a/_images/b68652521a8b4da67d5745351536e402bdaed4a488e228f9c7f081726969cd65.png and /dev/null differ diff --git a/_images/b7a9fec977b25f88e390483a45024a11b9b85cf93d5b8492bdcdf0c8887707a3.png b/_images/b7a9fec977b25f88e390483a45024a11b9b85cf93d5b8492bdcdf0c8887707a3.png deleted file mode 100644 index f71bd1b..0000000 Binary files a/_images/b7a9fec977b25f88e390483a45024a11b9b85cf93d5b8492bdcdf0c8887707a3.png and /dev/null differ diff --git a/_images/c1d7963841af431efece1027ac45a40bf8432064bdc00b23298e4012fc752df3.png b/_images/c1d7963841af431efece1027ac45a40bf8432064bdc00b23298e4012fc752df3.png new file mode 100644 index 0000000..093e50f Binary files /dev/null and b/_images/c1d7963841af431efece1027ac45a40bf8432064bdc00b23298e4012fc752df3.png differ diff --git a/_images/d2617a8cd6660d08b687e3d6e916943125722408d2d59dc7c17754ad0213d61a.png b/_images/d2617a8cd6660d08b687e3d6e916943125722408d2d59dc7c17754ad0213d61a.png deleted file mode 100644 index 80c8237..0000000 Binary files a/_images/d2617a8cd6660d08b687e3d6e916943125722408d2d59dc7c17754ad0213d61a.png and /dev/null differ diff --git a/_images/d33c484752eb1c2fba9f92c4ab7cb2bc939e0132dc0c6150851813a063d38686.png b/_images/d33c484752eb1c2fba9f92c4ab7cb2bc939e0132dc0c6150851813a063d38686.png deleted file mode 100644 index 3cf93b2..0000000 Binary files a/_images/d33c484752eb1c2fba9f92c4ab7cb2bc939e0132dc0c6150851813a063d38686.png and /dev/null differ diff --git a/_images/d58f44359ceab84fbfaa8fb9ecbb7887424553d69ab11d422051f9b5dc4974e8.png b/_images/d58f44359ceab84fbfaa8fb9ecbb7887424553d69ab11d422051f9b5dc4974e8.png new file mode 100644 index 0000000..49c4ffb Binary files /dev/null and b/_images/d58f44359ceab84fbfaa8fb9ecbb7887424553d69ab11d422051f9b5dc4974e8.png differ diff --git a/_images/d626bc8f20d529cbdcebf5fc719e1121722e2867b111f9416301d294aab9971c.png b/_images/d626bc8f20d529cbdcebf5fc719e1121722e2867b111f9416301d294aab9971c.png deleted file mode 100644 index 18d106e..0000000 Binary files a/_images/d626bc8f20d529cbdcebf5fc719e1121722e2867b111f9416301d294aab9971c.png and /dev/null differ diff --git a/_images/dc01bdfb1b1966d9f89ed8881043cabb9ca50aa96d1b6da6726872f81855b4d3.png b/_images/dc01bdfb1b1966d9f89ed8881043cabb9ca50aa96d1b6da6726872f81855b4d3.png new file mode 100644 index 0000000..1acd769 Binary files /dev/null and b/_images/dc01bdfb1b1966d9f89ed8881043cabb9ca50aa96d1b6da6726872f81855b4d3.png differ diff --git a/_images/f1af78ca31b876286c07bd3db5d26b6e32cb0dc695fdf7745d6f3693ee9df426.png b/_images/f1af78ca31b876286c07bd3db5d26b6e32cb0dc695fdf7745d6f3693ee9df426.png deleted file mode 100644 index 39a9f70..0000000 Binary files a/_images/f1af78ca31b876286c07bd3db5d26b6e32cb0dc695fdf7745d6f3693ee9df426.png and /dev/null differ diff --git a/_images/f27ddae0d8c2376fa811cfdc6f2fbfb96a774efa9a3c7c9b10798f0c50f070d0.png b/_images/f27ddae0d8c2376fa811cfdc6f2fbfb96a774efa9a3c7c9b10798f0c50f070d0.png deleted file mode 100644 index 30b4f82..0000000 Binary files a/_images/f27ddae0d8c2376fa811cfdc6f2fbfb96a774efa9a3c7c9b10798f0c50f070d0.png and /dev/null differ diff --git a/_images/f2bd79cd55d4411f9fae6e4a734a1641613b71e06b9357f77bfb516cc855f9fa.png b/_images/f2bd79cd55d4411f9fae6e4a734a1641613b71e06b9357f77bfb516cc855f9fa.png deleted file mode 100644 index 3146f50..0000000 Binary files a/_images/f2bd79cd55d4411f9fae6e4a734a1641613b71e06b9357f77bfb516cc855f9fa.png and /dev/null differ diff --git a/_images/f923012dec899e9bd692ab0ca84d9b22c19e8a0fe0cb11fd4118840346cd8975.png b/_images/f923012dec899e9bd692ab0ca84d9b22c19e8a0fe0cb11fd4118840346cd8975.png new file mode 100644 index 0000000..bcdee7b Binary files /dev/null and b/_images/f923012dec899e9bd692ab0ca84d9b22c19e8a0fe0cb11fd4118840346cd8975.png differ diff --git a/_sources/orthogonality/least_squares.md b/_sources/orthogonality/least_squares.md index 4b07d49..c476f31 100644 --- a/_sources/orthogonality/least_squares.md +++ b/_sources/orthogonality/least_squares.md @@ -204,7 +204,7 @@ bests fits the data $(0,1),(1/4,3),(1/2,2),(3/4,-1),(1,0)$. ```{dropdown} Solution $$ -A = \left[ \begin{array}{rrr} 1 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & -1 & 0 \\ 1 & 0 & -1 \\ 1 & 1 & 0 \end{array} \right] +A = \left[ \begin{array}{rrr} 1 & 1 & 0 \\ 1 & 0 & 1 \\ 1 & -1 & 0 \\ 1 & 0 & -1 \\ 1 & 1 & 0 \end{array} \right] \hspace{10mm} \boldsymbol{y} = \left[ \begin{array}{r} 1 \\ 3 \\ 2 \\ -1 \\ 0 \end{array} \right] $$ diff --git a/_sources/systems/interpolation.md b/_sources/systems/interpolation.md index 130cebc..f34995e 100644 --- a/_sources/systems/interpolation.md +++ b/_sources/systems/interpolation.md @@ -377,7 +377,7 @@ Therefore $6a_3 + 2b_3 = 2b_4$ implies $b_4 = 0$, the equation $3a_3 + 2b_3 + c_ The value $t=2.5$ lies in the interval $[t_2,t_3]$ therefore we compute $$ -p''(2.5) = p_3''(2.5) = 6a_3(2.5 - 2) - 2b_3 = -3 +p''(2.5) = p_3''(2.5) = 6a_3(2.5 - 2) + 2b_3 = -3 $$ ```{image} /img/01_03_05.png diff --git a/_sources/systems/odes.md b/_sources/systems/odes.md index a621891..5131a29 100644 --- a/_sources/systems/odes.md +++ b/_sources/systems/odes.md @@ -414,7 +414,7 @@ $$ y'' = 2^t \ \ , \ \ y'(0) = 1 \ , \ \ y(1) = 0 $$ -using step size $h=0.25$. Use the forward difference formula and the boundary condition $y'(0)=0$ to approximate the boundary value $y_0$. +using step size $h=0.25$. Use the forward difference formula and the boundary condition $y'(0)=1$ to approximate the boundary value $y_0$. **Exercise 4.** Derive the general form of the linear system $A \boldsymbol{y} = \boldsymbol{b}$ for an equation with boundary conditions diff --git a/notebooks/01_linear_systems.html b/notebooks/01_linear_systems.html index 8513a35..5294bf7 100644 --- a/notebooks/01_linear_systems.html +++ b/notebooks/01_linear_systems.html @@ -647,9 +647,6 @@
-
115575244.6289977
+115575244.59700233
Yikes! The interpolating polynomial is very sensitive to small changes in the \(y\) values! That’s because the condition number is large!
diff --git a/notebooks/04_spline_interpolation.html b/notebooks/04_spline_interpolation.html index ee7c5fb..2479019 100644 --- a/notebooks/04_spline_interpolation.html +++ b/notebooks/04_spline_interpolation.html @@ -518,7 +518,7 @@14.530258040767446
+14.530258040767464
The cubic spline is not sensitive to small changes in the \(y\) values.
diff --git a/notebooks/06_least_squares_regression.html b/notebooks/06_least_squares_regression.html index bd6e275..ad6bb47 100644 --- a/notebooks/06_least_squares_regression.html +++ b/notebooks/06_least_squares_regression.html @@ -515,7 +515,7 @@Let’s use linear regression to retrieve the coefficients \(c_0\) and \(c_1\). Construct the matrix \(A\):
@@ -540,11 +540,11 @@array([[1. , 0.58343377],
- [1. , 0.75391049],
- [1. , 0.80513638],
- [1. , 0.93628357],
- [1. , 0.85067217]])
+array([[1. , 0.10751451],
+ [1. , 0.56699523],
+ [1. , 0.92723053],
+ [1. , 0.99217346],
+ [1. , 0.39107857]])
[ 6.95249672 -3.90471848]
+[ 6.97163969 -3.98683101]
Construct the matrix \(A\):
@@ -674,7 +674,7 @@Let’s solve again but this time we use the QR decomposition:
@@ -699,7 +699,7 @@Compute the SVD of the data matrix:
@@ -466,8 +466,8 @@array([[-0.86616362, -0.49976053],
- [ 0.49976053, -0.86616362]])
+array([[ 0.85839616, 0.51298736],
+ [-0.51298736, 0.85839616]])
24782.331042560716
+24782.3310425676
Power method: 384.70724040315235
-SciPy: 384.7072470931362
+Power method: 399.7664965212194
+SciPy: 399.7664965222582
[[ 2.41421356e+00 -3.77213497e-16 -2.29396765e-16]
- [-1.45293347e-19 1.00000000e+00 -1.23531192e-16]
+[[ 2.41421356e+00 2.38617379e-16 3.39797215e-16]
+ [ 1.45293347e-19 1.00000000e+00 -7.24650102e-17]
[ 0.00000000e+00 1.45293347e-19 -4.14213562e-01]]
diff --git a/notebooks/12_fft.html b/notebooks/12_fft.html
index 6734ccc..996a50e 100644
--- a/notebooks/12_fft.html
+++ b/notebooks/12_fft.html
@@ -527,7 +527,7 @@ Filtering
-
+
using step size \(h=0.25\). Use the forward difference formula and the boundary condition \(y'(0)=1\) to approximate the boundary value \(y_0\).
Exercise 4. Derive the general form of the linear system \(A \boldsymbol{y} = \boldsymbol{b}\) for an equation with boundary conditions