Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Constructing words or strings using iteration

It is not allowed to label simplices with numbers or lists, and I want to enter a few thousand simplices. I am therefore trying to do something that naively looks like this:

sage: from sage.homology.simplicial_set import AbstractSimplex, SimplicialSet

sage: for i in range(4):

sage: Word(('v', i))=AbstractSimplex(0)

I have also tried using strings. Does anyone know how to do this?

Constructing words or strings using iteration

It is not allowed to label simplices with numbers or lists, and I want to enter a few thousand simplices. I am therefore trying to do something that naively looks like this:

sage: from sage.homology.simplicial_set import AbstractSimplex, SimplicialSet

SimplicialSet sage: for i in range(4):

sage: range(4): ....: Word(('v', i))=AbstractSimplex(0)

i)) = AbstractSimplex(0)

I have also tried using strings. Does anyone know how to do this?