Skip to content

Commit 771dd67

Browse files
committed
adding examples
1 parent 3da3354 commit 771dd67

File tree

5 files changed

+50
-0
lines changed

5 files changed

+50
-0
lines changed

src/sage/combinat/sf/elementary.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ def P(i):
101101
def _magma_init_(self, magma):
102102
"""
103103
Used in converting this ring to the corresponding ring in MAGMA.
104+
105+
EXAMPLES::
106+
107+
sage: # optional - magma
108+
sage: S = SymmetricFunctions(QQ).e()
109+
sage: t = 4*S[3,2]+9
110+
sage: mt = magma(t); mt
111+
9 + 4*$.[3,2]
112+
sage: mt.sage()
113+
9*p[] + 4*e[3, 2]
104114
"""
105115
B = magma(self.base_ring())
106116
Bref = B._ref()

src/sage/combinat/sf/homogeneous.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@ def P(i):
128128
def _magma_init_(self, magma):
129129
"""
130130
Used in converting this ring to the corresponding ring in MAGMA.
131+
132+
EXAMPLES::
133+
134+
sage: # optional - magma
135+
sage: S = SymmetricFunctions(QQ).h()
136+
sage: t = 4*S[3,2]+9
137+
sage: mt = magma(t); mt
138+
9 + 4*$.[3,2]
139+
sage: mt.sage()
140+
9*p[] + 4*h[3, 2]
131141
"""
132142
B = magma(self.base_ring())
133143
Bref = B._ref()

src/sage/combinat/sf/monomial.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,16 @@ def antipode_by_coercion(self, element):
279279
def _magma_init_(self, magma):
280280
"""
281281
Used in converting this ring to the corresponding ring in MAGMA.
282+
283+
EXAMPLES::
284+
285+
sage: # optional - magma
286+
sage: S = SymmetricFunctions(QQ).m()
287+
sage: t = 4*S[3,2]+9
288+
sage: mt = magma(t); mt
289+
9 + 4*$.[3,2]
290+
sage: mt.sage()
291+
9*p[] + 4*m[3, 2]
282292
"""
283293
B = magma(self.base_ring())
284294
Bref = B._ref()

src/sage/combinat/sf/powersum.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,16 @@ def eval_at_permutation_roots_on_generators(self, k, rho):
219219
def _magma_init_(self, magma):
220220
"""
221221
Used in converting this ring to the corresponding ring in MAGMA.
222+
223+
EXAMPLES::
224+
225+
sage: # optional - magma
226+
sage: S = SymmetricFunctions(QQ).p()
227+
sage: t = 4*S[3,2]+9
228+
sage: mt = magma(t); mt
229+
9 + 4*$.[3,2]
230+
sage: mt.sage()
231+
9*p[] + 4*p[3, 2]
222232
"""
223233
B = magma(self.base_ring())
224234
Bref = B._ref()

src/sage/combinat/sf/schur.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,16 @@ def _repeated_bernstein_creation_operator_on_basis(self, la, nu):
227227
def _magma_init_(self, magma):
228228
"""
229229
Used in converting this ring to the corresponding ring in MAGMA.
230+
231+
EXAMPLES::
232+
233+
sage: # optional - magma
234+
sage: S = SymmetricFunctions(QQ).s()
235+
sage: t = 4*S[3,2]+9
236+
sage: mt = magma(t); mt
237+
9 + 4*$.[3,2]
238+
sage: mt.sage()
239+
9*p[] + 4*s[3, 2]
230240
"""
231241
B = magma(self.base_ring())
232242
Bref = B._ref()

0 commit comments

Comments
 (0)