Solution to problem33

Requires sympy shell