Python wrapper for cycle library based on pyGiNaC

Vladimir V. Kisil and Daniel Seidel

The library for the Fillmore-Springer-Cnops construction implemented in GiNaC is now available for usage from the Python scripts or interactive shell.

Download the package, extract the archive using command

tar -zxvf cycle.tgz

and follow instructions in the file cycle/README.

As an illustration the following lines:

s=realsymbol("s")
C=cycle2D(1,[0,2],3,diag_matrix([-1,s]))
A=asy()
A.send("real u=1cm;")
A.send(C.subs(s==-1).asy_string(-3,3,-3,3,[1,0,0]))
A.send(C.subs(s==0).asy_string(-3,3,-3,3,[0,1,0]))
A.send(C.subs(s==1).asy_string(-3,3,-3,3,[0,0,1]))
del(A)

will produce the following three drawings of the same cycle C in spaces with different metrics parametrised by s.

Back to V.V.Kisil homepage.

visitors to this page since 01/09/1999.
Search this site powered by FreeFind

Last modified: November 12, 2007.
This document was translated from LATEX by HEVEA.