4 ms·
I'd really love to see a JavaScript implementations of this if you're willing to share
by papa_bear 11y ago
I'd really love to see a JavaScript implementations of this if you're willing to share
- strmpnk 11y agoI'll wrap up a new version of the library that's independent of what I have it hooked up to and upload it to npm and hex.pm respectively. When I first wrote it, I started with midpoints but it doesn't take long to see that it gets messy to optimize. I eventually stumbled on the b-tree representation of all positive rational numbers (Stern-Brocot) and the optimization became obvious.