Math Toolkit for Real-Time Programming