Numerical control : mathematics and applications