A collection of math routines and analytical solutions