X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Fsymbol_sequence.py;h=63c8316fb9725bb2aab8a91f35dabf3a2e6d854b;hb=2fa2a7a2f6a5d5f1628a4f5cf3301d5e7f670038;hp=cd9e02dc675f0bea6f05d64ba277fab5aa1d8564;hpb=9a08c865c94e7efd3350e65ff73f67341c191be5;p=sage.d.git diff --git a/mjo/symbol_sequence.py b/mjo/symbol_sequence.py index cd9e02d..63c8316 100644 --- a/mjo/symbol_sequence.py +++ b/mjo/symbol_sequence.py @@ -20,6 +20,10 @@ class SymbolSequence: An iterable object containing symbolic expressions. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES: The simplest use case:: @@ -117,6 +121,10 @@ class SymbolSequence: appropriate name and latex_name before delegating to SR.symbol(). + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES:: sage: a = SymbolSequence('a', 'alpha', 'real') @@ -147,6 +155,10 @@ class SymbolSequence: more than can be said about some of the snappier solutions of lore. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES:: sage: a = SymbolSequence('a') @@ -177,6 +189,10 @@ class SymbolSequence: tuples. It just hands off the real work to self._subscript_foo_(). + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES: An integer argument:: @@ -215,6 +231,10 @@ class SymbolSequence: The subscript is a single integer, or something that acts like one. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES:: sage: a = SymbolSequence('a') @@ -239,6 +259,10 @@ class SymbolSequence: first. The start/step are default for lists. We make copies of these because they're read-only. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES:: sage: a = SymbolSequence('a') @@ -268,6 +292,10 @@ class SymbolSequence: When we have more than one level of subscripts, we pick off the first one and generate the rest recursively. + SETUP:: + + sage: from mjo.symbol_sequence import SymbolSequence + EXAMPLES: A simple two-tuple::