A python script that solves different types of equations