alexander#

Alexander polynomials (one-variable and multivariable).

alexander(k, symmetric=False)#

Compute the one-variable Alexander polynomial via HOMFLY-PT specialization.

Parameters:
  • k (PlanarDiagram | OrientedPlanarDiagram) – Planar diagram of a knot or link. If not oriented, it will be oriented internally.

  • symmetric (bool) – If True, normalize to a symmetric (palindromic) representative.

Returns:

A SymPy expression in t representing the Alexander polynomial.

Return type:

Expr

Notes

Uses the substitution x=1, y=-1, z=-(t**1/2) + (t**(-1/2)) on HOMFLY-PT.

Examples

>>> # K is a diagram of the trefoil (example; adjust to your construction)
>>> # alexander(K)
t**2 - t + 1
multivariable_alexander(k)#
Parameters:

k (PlanarDiagram | OrientedPlanarDiagram)

Return type:

Expr

alexander_multivariable(k)#
Parameters:

k (PlanarDiagram | OrientedPlanarDiagram)

Return type:

Expr