Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Medium

New issue 2043 by smichr: logcombine can be less strict
http://code.google.com/p/sympy/issues/detail?id=2043

logcombine only combines a coefficient to a log if the coefficient is real, but it appears that it is true for imaginary coefficients, too:

N((I+2)*log(3))
2.19722457733622 + 1.09861228866811*I
log(3**(2+I)).n()
2.19722457733622 + 1.09861228866811*I

So x*log(pos) -> log(pos**x) seems to be the more general rule unless I am missing a special case.

This would allow 2*x*log(2) to combine to log(2**(2*x)).

The hint to logcombine, assume_pos_real, could be changed to assume_pos.

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