Skip to content

An implementation of the Surreal numbers in Python

Notifications You must be signed in to change notification settings

koteth/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

  • Python 100.0%