Control of mechanical systems Numerical methods mathematics