Simple math library.