Code for helping with math research