-
Notifications
You must be signed in to change notification settings - Fork 2
/
all.py
25 lines (23 loc) · 796 Bytes
/
all.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from superpartition import Superpartitions
from sym_superfunct import SymSuperfunctionsAlgebra
from sage.rings.rational_field import QQ
from sage.structure.sage_object import load
load('superspace.py')
def super_init():
"""Inject the basis and the coeff ring."""
global QQqta
global Sym
global Sparts
QQqta = QQ['q', 't', 'alpha'].fraction_field()
print("Defining QQqta as " + str(QQqta))
Sym = SymSuperfunctionsAlgebra(QQqta)
print("Defining Sym as " + str(Sym))
global p, m, e, h
p = Sym.Powersum()
m = Sym.Monomial()
e = Sym.Elementary()
h = Sym.Homogeneous()
print("Defining m, p, e, h as monomial, powersum, elementary and"
"homogensous bases")
Sparts = Superpartitions()
print("Defining Sparts as " + str(Sparts))