Fungrim home page

Gaussian quadrature

Table of contents: Gauss-Legendre quadrature

Gauss-Legendre quadrature

Related topics: Legendre polynomials

0745ee
zeros⁡ z∈CPn ⁣(z)={xn,1,xn,2,…,xn,n}\mathop{\operatorname{zeros}\,}\limits_{z \in \mathbb{C}} P_{n}\!\left(z\right) = \left\{x_{n,1}, x_{n,2}, \ldots, x_{n,n}\right\}
ea4754
wn,k=2(1−(xn,k)2)(Pn′(xn,k))2w_{n,k} = \frac{2}{\left(1 - {\left(x_{n,k}\right)}^{2}\right) {\left(P'_{n}(x_{n,k})\right)}^{2}}
47b181
∣∫−11f(t) dt−∑k=1nwn,kf ⁣(xn,k)∣≤64M15(1−ρ−2)ρ2n   where M=sup⁡t∈Eρ∣f(t)∣\left|\int_{-1}^{1} f(t) \, dt - \sum_{k=1}^{n} w_{n,k} f\!\left(x_{n,k}\right)\right| \le \frac{64 M}{15 \left(1 - {\rho}^{-2}\right) {\rho}^{2 n}}\; \text{ where } M = \mathop{\operatorname{sup}}\limits_{t \in \mathcal{E}_{\rho}} \left|f(t)\right|
545987
∣∫abf(t) dt−b−a2∑k=1nwn,kf ⁣(b−a2xn,k+a+b2)∣≤∣b−a∣264M15(1−ρ−2)ρ2n   where M=sup⁡t∈Eρ∣f ⁣(b−a2t+a+b2)∣\left|\int_{a}^{b} f(t) \, dt - \frac{b - a}{2} \sum_{k=1}^{n} w_{n,k} f\!\left(\frac{b - a}{2} x_{n,k} + \frac{a + b}{2}\right)\right| \le \frac{\left|b - a\right|}{2} \frac{64 M}{15 \left(1 - {\rho}^{-2}\right) {\rho}^{2 n}}\; \text{ where } M = \mathop{\operatorname{sup}}\limits_{t \in \mathcal{E}_{\rho}} \left|f\!\left(\frac{b - a}{2} t + \frac{a + b}{2}\right)\right|

Copyright (C) Fredrik Johansson and contributors. Fungrim is provided under the MIT license. The source code is on GitHub.

2021-03-15 19:12:00.328586 UTC