#conway #knuth

surreal

A Rust library that implements J. H. Conway's surreal numbers

9 unstable releases (4 breaking)

Uses old Rust 2015

0.4.1 Oct 31, 2019
0.3.1 Aug 21, 2019
0.3.0 Jul 19, 2019
0.1.1 Feb 6, 2019

#817 in Math

Download history 20/week @ 2024-02-19 30/week @ 2024-02-26 3/week @ 2024-03-04

53 downloads per month

MIT license

21KB
422 lines

surreal

https://travis-ci.com/realtable/surreal https://github.com/realtable/surreal/issues https://crates.io/crates/surreal

surreal is a Rust library that implements J. H. Conway's surreal numbers, as explained in the book Surreal Numbers by Donald Knuth. This crate provides an interface to the rules and theorems in the book and (so far) contains:

  • a basic surreal type
    • comparison and ordering
    • arithmetic system
  • decimal/surreal conversion
    • surreal to float
    • float to surreal
  • numbers past aleph day
    • infinite sets
  • pseudo-number implementation
home https://github.com/realtable/surreal
docs https://docs.rs/surreal
cargo https://crates.io/crates/surreal
build https://travis-ci.com/realtable/surreal
$ cargo install surreal

No runtime deps