3 ms·
Not my area, but it oooks like there’s a surreal numbers package: https://github.com/mroughan/SurrealNumbers.jl https://github.com/mroughan/SurrealNumbers.jl
by elcritch 7y ago
Not my area, but it oooks like there’s a surreal numbers package:
https://github.com/mroughan/SurrealNumbers.jl https://github.com/mroughan/SurrealNumbers.jl
And a nice paper:
https://arxiv.org/pdf/1810.10373 https://arxiv.org/pdf/1810.10373
- igravious 7y agoSpotted that package, and paper – but I don't know Julia so I haven't dug into it yet. Must get in touch with the author. I've made a Ruby implementation and the naive recursive addition/subtraction has pathological code paths.
- elcritch 7y agoYah, Julia follows the lisp-y tradition of defining numerical in the language. All the built-in types are defined in Julia. Check out https://github.com/JuliaLang/julia/blob/381693d3dfc9b7072707f6d544f82f6637fc5e7c/base/docs/basedocs.jl#L1458-L1462 https://github.com/JuliaLang/julia/blob/381693d3dfc9b7072707... Still for interactive things it can be a bit slow still. I’d recommend using repl/notebooks. Good luck!