Math helper library.