Python scripts to solve the Cristoffel equation, and the inverse problem