New math tools for new materials