Library
Generalized Clenshaw-Curtis quadrature rule with application to a collocation least-squares method