Related topics: Legendre polynomials

$\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\}$
$w_{n,k} = \frac{2}{\left(1 - {\left(x_{n,k}\right)}^{2}\right) {\left(P'_{n}(x_{n,k})\right)}^{2}}$
$\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|$
$\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.

2020-04-08 16:14:44.404316 UTC