library of advanced math functions
