scripts to design a cam for a knitting machine (numerical methods)