Solve equations involving surds (#325)