Comment #2 on issue 1229 by [email protected]: Simplification of sqrts
http://code.google.com/p/sympy/issues/detail?id=1229
So it gives the correct answer but one should use logcombine on the result.
logcombine will only combines the logarithms if their arguments are
positive. So:
In [51]: s = Symbol('s', positive=True)
In [52]: y = Symbol('y', positive=True)
In [53]: t = -2*log(s) + 2*log(1/y) - log(pi) - log(2)
In [54]: logcombine(t)
Out[54]:
/ 1 \
log|--------| - log(2)
| 2 2|
\pi*s *y /
Somehow, it does not combine the log(2).
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.