| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
structure.sage_object.SageObject --+
|
Sloane
A collection of Sloane generating functions.
This class inspects sage.combinat.sloane_functions, accumulating all the SloaneSequence classes starting with 'A'. These are listed for tab completion, but not instantiated until requested.
EXAMPLES:
Ensure we have lots of entries:
sage: len(sloane.trait_names()) > 100
True
And ensure none are being incorrectly returned:
sage: [ None for n in sloane.trait_names() if not n.startswith('A') ]
[]
Ensure we can access dynamic constructions and cache correctly:
sage: s = sloane.A000587
sage: s is sloane.A000587
True
And that we can access other functions in parent classes:
sage: sloane.__class__
<class 'sage.combinat.sloane_functions.Sloane'>
AUTHOR: Nick Alexander
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
List Sloane generating functions for tab-completion.
The member classes are inspected from module sage.combinat.sloane_functions.
They must be sub classes of SloaneSequence and must start with 'A'. These
restrictions are only to prevent typos, incorrect inspecting, etc.
EXAMPLES:
sage: type(sloane.trait_names())
<type 'list'>
|
Construct and cache unique instances of Sloane generating function objects
.
EXAMPLES:
sage: sloane.__getattribute__('A000001')
Number of groups of order n.
sage: sloane.__getattribute__('dog')
Traceback (most recent call last):
...
AttributeError: dog
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:37 2008 | http://epydoc.sourceforge.net |