A math solver written in Python (Euler would have loved this for his homework)