Skip to content

coneill-math/numsgps-sage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numsgps-sage

Provides a Python class NumericalSemigroup for use with the computer algebra system Sage that adds functionality for working with numerical semigroups. Internally, it uses the GAP package numericalsgps, and is intended to help ease the interface between Sage and the GAP package.

  • All types returned are true Sage types, not just wrappers around GAP types.
  • Autocomplete is supported in the Sage web interface. See the sample code below.
  • Most factorization invariants supported by GAP are implemented, and more functionality will continue to be added. In fact, feature requests are encouraged, just send me an email!

You can find action shots in the images folder.

Please note that this is an alpha version and subject to change without notice.

License

numsgps-sage is released under the terms of the MIT license. The MIT License is simple and easy to understand and it places almost no restrictions on what you can do with this software.

Usage

To set up your machine to use numsgpssage, do the following.

  • First, install Sage on your machine. Instructions for doing so can be found here.
  • Next, install the GAP package numericalsgps into your Sage installation. Instructions for installing GAP packages in Sage can be found here, and the numericalsgps package can be found here.
  • Finally, download NumericalSemigroup.sage and place it in your favorite folder.

The following code fragment gives an overview of how to use the NumericalSemigroup class from within Sage, and more complete documentation will be added in the near future.

load('/PATH_TO_FILE/NumericalSemigroup.sage')
McNuggets = NumericalSemigroup([6,9,20])
print(McNuggets.FrobeniusNumber())
print(McNuggets.LengthSet(400))
print(McNuggets.DeltaSet(400))
print(McNuggets.OmegaPrimality(400))
print(McNuggets.CatenaryDegree(400))

About

A Sage wrapper for the GAP package numericalsgps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published