I'm reading a paper right now which criticizes a method because it uses trapezoid rule, rather than "more advanced quadrature rules like the Gauss quadrature"...
The Gaussian quadrature rule requires, given $N$, the calculation of a bunch of weights and nodes. After these weights and nodes are known, the integral can be calculated as a simple sum $\sum w_i f(x_i)$.
Okay.
But on standing foot, nobody knows what $w_i$ and $x_i$ are. They need to be calculated. That takes time.
On the other hand, you can straight away apply the trapezoid rule. If you use a uniform grid, you can calculate the nodes and weights in no time, and so the only real computational expense is to actually evaluate the sum.
So what am I missing here? Why is there even a debate here? Wouldn't we always prefer trapezoid rule since the weights and nodes are easier to calculate?
To give an example, in R, I can compute the nodes and weights needed for $N$-point Gaussian quadrature using the function gauss.quad. With $n = 2^{12} = 4096$, gauss.quad(4096) takes about a full second on my computer to compute.
In comparison, if we want to compute the evaluation points needed for trapezoid rule on a uniform grid, it takes 0.01 milliseconds!!.
So what am I missing? What's the big deal about "advanced quadrature rules" when trapezoid rule is only sliiiightly less accurate and a million times faster?