Valentine’s Day is more than a time to pass out candy and cards. It’s a day that inspires engineering, a walk through ancient history, and mathematical techniques.