Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
27522: fix an some more doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
soehms committed May 6, 2022
1 parent e0c61a3 commit 9f0bbf3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/sage/knots/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,16 @@ def conway_polynomial(self):
sage: B = BraidGroup(3)
sage: L = Link(B([1, -2, 1, -2]))
sage: L.conway_polynomial()
-t + 1 ?
-t^2 + 1
sage: Link([[1, 5, 2, 4], [3, 9, 4, 8], [5, 1, 6, 10],
....: [7, 3, 8, 2], [9, 7, 10, 6]])
Link with 1 component represented by 5 crossings
sage: _.conway_polynomial()
2*t^2 + 1
sage: B = BraidGroup(4)
sage: L = Link(B([1,3]))
sage: L.conway_polynomial()
0
.. SEEALSO:: :meth:`alexander_polynomial`
"""
Expand All @@ -1946,7 +1955,6 @@ def conway_polynomial(self):
M = max(alex.exponents())
coeff = alex[M]
alex -= coeff * binom**M
M = M // 2
conway += coeff * t_poly**M
return conway

Expand Down

0 comments on commit 9f0bbf3

Please sign in to comment.