Mathematical Modeling of Manufacturing Processes