Comment #5 on issue 2040 by asmeurer: Better way to make a rational function out of an expression
http://code.google.com/p/sympy/issues/detail?id=2040

Just forget the log expression, OK. That isn't a rational function in x, so the routine I am advocating here would not be able to do anything with it. The example expression should be something more like sqrt(x**2*y**2 + 2*y*x**3 + x**4) or sqrt(1 + 2*y/x + y**2/x**2).

So (x**(2/3)**3 -> (x**(1/3))**6

I would expect it to do x**(6/3), i.e., x**2. That is the kind of behavior I need. x**(2/3)**3 and x**(1/3)**6 are useless if I am trying to make a rational function out of x.

I think full factor() is unnecessary for this to work. All you need is sqf(). The question is, does your powdenest() function work with factors correctly (i.e., sqrt((x + y)**2*(x - y)**4) => (x + y)*(x - y)**2)?

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to