Closed Expressions for Coefficients in Weighted Newton--Cotes Quadratures


Mohammad Masjed-Jamei, Gradimir V. Milovanović, M. A. Jafari




In this short note, we derive closed expressions for Cotes numbers in the weighted Newton--Cotes quadrature formulae with equidistant nodes in terms of moments and Stirling numbers of the first kind. Three types of equidistant nodes are considered. The corresponding program codes in Mathematica Package are presented. Finally, in order to illustrate the application of the obtained quadrature formulas a few numerical examples are included.