Closed dfkettle closed 1 year ago
This isn't a Python 3 package, but a Python 2.7 package.
Any plans to update it for Python 3?
On Sun., Apr. 9, 2023, 12:21 p.m. Corbin Simpson, @.***> wrote:
Closed #1 https://github.com/MostAwesomeDude/continued/issues/1 as completed.
— Reply to this email directly, view it on GitHub https://github.com/MostAwesomeDude/continued/issues/1#event-8959349232, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAFEDYEXBYVHRAQND7JQDDXALO2JANCNFSM6AAAAAAWYE3UEU . You are receiving this because you authored the thread.Message ID: @.***>
Not really. I encourage you to read the code, read the various papers, try to make sense of Gosper's diagrams, and get your own intuition for how continued fractions work. Then, try to write your own Gosper-machine implementation.
There's two problems with trying to use this code for anything serious. The first problem is that the Cauchy convergents are just not very good. For Hurwitz numbers (e
and friends) they're fine, and I bet that they're also acceptable for surds (square roots, etc.) but they don't obey any sort of fast Cauchy convergence property. I didn't know that this was a thing when I wrote this code!
The second problem is that e.g. sqrt(8) * sqrt(8)
diverges; the computed coefficients are [8; 0, 0, ..]. This is tricky to overcome; the Gosper machine needs to not just propagate infinity, but propagate information about zero-ness or infinite-ness at each extremal point.
After installing, I get this error on the import statement:
I'm running Python 3.10.9 (under Thonny 4.0.2) on Windows 10.