Note
Go to the end to download the full example code.
Knot example#
Compute the Jones polynomial of the trefoil knot.
import knotpy as kp
k = kp.PlanarDiagram("3_1")
print("Jones polynomial:", kp.jones_polynomial(k))
Note
Go to the end to download the full example code.
Compute the Jones polynomial of the trefoil knot.
import knotpy as kp
k = kp.PlanarDiagram("3_1")
print("Jones polynomial:", kp.jones_polynomial(k))