I went ahead and did a quick port of my Magma code over to Sage ---
I'm trying to wean myself of Magma as much as possible.   You can find
it as the file "alexander.py" at

http://dunfield.info/snappea/

Example usage:

sage: import snappy
sage: from alexander import alexander_polynomial
sage: M = snappy.Manifold('m004')
sage: alexander_polynomial(M)
-a^2 + 3*a - 1
sage: M = snappy.Manifold('v3551')
sage: alexander_polynomial(M)
a^4*b^4 + a^4*b^3 + a^3*b^4 + a^4*b^2 + 2*a^3*b^3 + a^2*b^4 +
2*a^3*b^2 + 2*a^2*b^3 + a^3*b + 2*a^2*b^2 + a*b^3 + 2*a^2*b + 2*a*b^2
+ a^2 + 2*a*b + b^2 + a + b + 1

Best,

Nathan
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to