Updates:
        Status: NeedsDecision
        Labels: -NeedsBetterPatch -smichr

Comment #4 on issue 2820 by [email protected]: expand() doesn't work in the denominator
http://code.google.com/p/sympy/issues/detail?id=2820

From pull request 700 Aaron says:
This is a nice solution for issue 849, but I'm not sure if it is the best solution for issue 2820. In general, would want something like `expand((a + b)/(x*(1 + y)))` to return `a/(x + y*x) + b/(x + y*x)`. In other words, the problem with that issue is that expand() is not recursing inside of negative powers for some reason, even
  with deep=True.

sympy doesn't like this type of automatic expansion of the denominator, e.g.

    simplify(ratint(a/(b*c*x**2 + a**2 + b*a), x))

gives

    >>> print text(eq2)
    sqrt(-a/(b*c*(a + b)))*(-log(-a*sqrt(-a/(b*c*(a + b))) -
    b*sqrt(-a/(b*c*(a + b))) + x) + log(a*sqrt(-a/(b*c*(a + b)))
    + b*sqrt(-a/(b*c*(a + b))) + x))/2

rather than

    >>> print text(eq)
    sqrt(a)*atan(sqrt(b)*sqrt(c)*x/(sqrt(a)*sqrt(a +
    b)))/(sqrt(b)*sqrt(c)*sqrt(a + b))

so it's perhaps better to leave this in the hands of the user through the numer_expand, denom_expand and fraction_expand functionality.

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

Reply via email to