choreo.segm.quad.QuadTable#
- class QuadTable(w, x, wlag, th_cvg_rate=None)#
Numerical integration and approximation.
This class implements useful methods for the approximate integration (or quadrature) of regular functions on a segment, as well as other related numerical methods.
(1)#\[\int_{0}^{1} f(x) \dd x \approx \sum_{i=0}^{n-1} w_i f(x_i)\]Class Constructor
- __init__()
Builds a
QuadTable
from input node and weight arrays.- Parameters:
w (
numpy.ndarray
(shape = (n), dtype = np.float64)
) – Quadrature weights.x (
numpy.ndarray
(shape = (n), dtype = np.float64)
) – Quadrature nodes on \([0,1]\).wlag (
numpy.ndarray
(shape = (n), dtype = np.float64)
) – Barycentric Lagrange interpolation weights.th_cvg_rate (
int
, optional) – Theoretical convergence rate of the quadrature formula, by defaultNone
.
Methods Summary
Builds a
QuadTable
from input node and weight arrays.Returns
True
if the integration method is symmetric.Returns
True
if the pair of integration methods is symmetric.Computes the symmetric adjoint of a
QuadTable
.Computes the symmetry default of a single / a pair of
QuadTable
.Attributes
Number of steps of the method.
Theoretical convergence rate of the quadrature for smooth functions.
Integration weights of the method on \([0,1]\).
Barycentric Lagrange interpolation weights relative to the nodes.
Nodes of the method in \([0,1]\).