$$\int_a^b f(x) \mathrm{d}x \approx \sum_{i=0}^n w_i\, f(x_i)$$

## 预览:

By MathWorld, if the formula uses $n$ points (closed or open), the coefficients of terms sum to $n-1$.