A Lightweight Math Engine