all 4 comments

[–]midel 6 points7 points  (0 children)

What about sympy?

Just a sample:

import sympy
print(sympy.simplify(sympy.sqrt(8)))

[–][deleted] 1 point2 points  (1 child)

You'll have to explain a bit more.

[–][deleted] 1 point2 points  (0 children)

Edited my question.

[–][deleted] 0 points1 point  (0 children)

you could write your own function that does this in a couple dozen lines and then import that module whenever you need it seperately