Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 578 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 578 Bytes

Surreal numbers in Python

Surreal numbers are a fascinating branch of pure mathematics. A surreal number can be written as {L|R} where both L and R are sets of Surreal numbers. A surreal number is well formed if every member of L is less-than or equal to every member of R.

This module provides a Surreal number object as well as a helper function for creating surreals from their string shorthands.

from surreal import Surreal as S, shorthand

# The zero surreal number
s = Surreal(set(), set())
s = shorthand('0')

This readme is still a work-in-progress.