For Daniel James, teaching applied linear algebra and a 6 a.m. weightlifting class aren’t as different as they may seem.