This convergence tester comes from Gerald Sussman's "Abstraction in Numerical Methods": https://dspace.mit.edu/bitstream/handle/1721.1/6060/AIM-997.pdf?sequence=2
We're planning on adding a number of these here and consolidating all of the available ideas about relative and maximum tolerance so we can share (and combine) them across different stream functions.
I have a dream that a function like seq-limit
could service most of the numerical methods in this library. Function minimization, root finding, definite integrals and numerical derivatives can all be expressed as successive approximations, with convergence tests (or other stopping conditions) checked and applied between iterations.
As of 10.2020 we use this exclusively for various numerical integration routines. But it has more promise than this!