Skip to content

codeinthehole/python-surreal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An implementation of the Surreal numbers in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages