News for hackers. Stuff that matters.
Re:Show HN: A Mathematical Integration rust crate by zackangelo on Tuesday November 19, 2024 @03:05PM (#42187535)
> Does the function oscillate over the region of integration? If it does, then make sure that the step size is chosen to be smaller than the wave length of the function.

Nyquist limit, but for numerical integration?

Re:Show HN: A Mathematical Integration rust crate by im3w1l on Tuesday November 19, 2024 @05:49PM (#42188927)
Well in both cases it comes down to aliasing I think (high frequency wave presents as low frequency wave with too big step size)
Re:Show HN: A Mathematical Integration rust crate by dawnofdusk on Tuesday November 19, 2024 @06:09PM (#42189046)
The Nyquist sampling theorem is of course proved by considering a Fourier transform, which is given by an integral, so the relation to integration in general should not be surprising.
Re:Show HN: A Mathematical Integration rust crate by alleycat5000 on Tuesday November 19, 2024 @06:58PM (#42189391)
One way to think about is that these techniques work by integrating exactly the polynomial that interpolates the function where you're sampling it, so you need to resolve the features of the function to get good accuracy.