From Algorithms to Automation: How Math Moves Robots