|
1 | 1 | ### A Pluto.jl notebook ### |
2 | | -# v0.20.5 |
| 2 | +# v0.20.6 |
3 | 3 |
|
4 | 4 | using Markdown |
5 | 5 | using InteractiveUtils |
@@ -107,9 +107,9 @@ and **then integrate that** instead of $f$ itself. |
107 | 107 | Since the integration of the polynomial is essentially exact, |
108 | 108 | the error of such a scheme is **dominated by the error of the polynomial |
109 | 109 | interpolation**. |
110 | | -As we found out in [the chapter on Interpolation](https://teaching.matmat.org/numerical-analysis/05_Interpolation.html) polynomials |
111 | | -through equispaced nodes become rather inaccurate for large $n$ |
112 | | -due to Runge's phaenomenon. |
| 110 | +Recall the [chapter on Interpolation](https://teaching.matmat.org/numerical-analysis/05_Interpolation.html), where we noted polynomials |
| 111 | +through equispaced nodes to become numerically unstable and |
| 112 | +possibly inaccurate for large $n$ due to Runge's phaenomenon. |
113 | 113 |
|
114 | 114 | Therefore we will pursue **piecewise linear polynomial interpolation** |
115 | 115 | instead of fitting an $n$-th degree polynomial. |
|
140 | 140 | plot!(p, [a + i * h, a + i * h], [0, f(a + i * h)]; |
141 | 141 | ls=:dash, c=:black, label="", lw=1.5) |
142 | 142 | end |
143 | | - annotate!(p, [(a, -0.5, L"t_0"), |
| 143 | + annotate!(p, [(a, -0.5, L"a = t_0"), |
144 | 144 | (a+h, -0.5, L"t_1"), |
145 | | - (a+n*h, -0.5, L"t_n")]) |
| 145 | + (a+n*h, -0.5, L"t_n = b")]) |
146 | 146 |
|
147 | 147 | ylims!(p, (-0.9, 10.5)) |
148 | 148 | p |
@@ -1219,7 +1219,7 @@ QuadGK = "~2.11.2" |
1219 | 1219 | PLUTO_MANIFEST_TOML_CONTENTS = """ |
1220 | 1220 | # This file is machine-generated - editing it directly is not advised |
1221 | 1221 |
|
1222 | | -julia_version = "1.11.4" |
| 1222 | +julia_version = "1.11.5" |
1223 | 1223 | manifest_format = "2.0" |
1224 | 1224 | project_hash = "0b137bedfe8a154be757099565fbd14062a17cca" |
1225 | 1225 |
|
@@ -1760,7 +1760,7 @@ version = "0.3.27+1" |
1760 | 1760 | [[deps.OpenLibm_jll]] |
1761 | 1761 | deps = ["Artifacts", "Libdl"] |
1762 | 1762 | uuid = "05823500-19ac-5b8b-9628-191a04bc5112" |
1763 | | -version = "0.8.1+4" |
| 1763 | +version = "0.8.5+0" |
1764 | 1764 |
|
1765 | 1765 | [[deps.OpenSSL]] |
1766 | 1766 | deps = ["BitFlags", "Dates", "MozillaCACerts_jll", "OpenSSL_jll", "Sockets"] |
|
0 commit comments