A torus knot of type p,q is given by X(t) = ((a + b*cos(p*t))cos(q*t), (a + b*cos(p*t))sin(q*t), b*sin(p*t)). The curvature and torsion functions are periodic with period depending on p and q.