Comment #9 on issue 1827 by smichr: log eval gives more standard form
http://code.google.com/p/sympy/issues/detail?id=1827

The code has been moved to log_expand rather than being automatic in eval.

A limit of 10,000 has been set on the factors; on my slow machine that means Aaron's example of the baboon at the keyboard takes only 2 seconds to report a sum of 2 terms
(11 and a big non-prime) ;-)

Also, there is nothing to prevent someone from typing log(2**9182340981273490812734, 2) which should be instantaneous in reporting the exponent but hangs on my machine because sympy tries (I imagine) to evaluate the power before doing the log. Perhaps
an issue could be opened?

Regarding logcombine, if this patch is not accepted then maybe someone could work
over logcombine so the following would work:

from sympy import *
var('x')
x
logcombine(x*log(10)-x*(log(2)+log(5)))
x*log(10) - x*log(2) - x*log(5)
collect(_,x)
x*(-log(2) - log(5) + log(10))
logcombine(_)
x*log(10) - x*log(2) - x*log(5)
_.expand() # this does the log simplification
0


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
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