Some advanced math tools