Solution (source code)

= Solution

For a regular parametrized curve $r(t)$, the <Frenet frame> is
$$
\boxed{
T=\frac{r'}{|r'|},\qquad
B=\frac{r'\times r''}{|r'\times r''|},\qquad
N=B\times T}.
$$
Equivalently, wherever $dT/dt\ne0$, one may write $N=(dT/dt)/|dT/dt|$ and $B=T\times N$.