I'm using sympy
v1.0 in a Jupyter Notebook. I'm having trouble getting expression to simplify how I'd like. Here's a toy example; it does the same thing my more complicated expressions do...
import sympy
sympy.init_printing(use_latex='mathjax')
x, y = sympy.symbols("x, y", real=True, positive=True)
sympy.simplify(sqrt(2*x/y))
gives me...
But I would prefer...
How can I get sympy
to group things in this way? Ive tried some of the other simplify
functions, but they all give me the same result. Or am I missing something else?