Re: Issue 2540 in sympy: log() not working properly

2011-07-02 Thread sympy
Comment #1 on issue 2540 by prashant...@gmail.com: log() not working properly http://code.google.com/p/sympy/issues/detail?id=2540 The above examples work if force=True argument is passed to the expand() function. log(x*y) log(x*y) log(x*y).expand(force=True) log(x) + log(y) But

Re: Issue 2540 in sympy: log() not working properly

2011-07-02 Thread sympy
Comment #2 on issue 2540 by prashant...@gmail.com: log() not working properly http://code.google.com/p/sympy/issues/detail?id=2540 In file sympy/functions/elementary/tests/test_exponential.py from line 143, the following assertions are made and AFAIK and seen, these assertions are meant

Re: Issue 2540 in sympy: log() not working properly

2011-07-02 Thread sympy
Comment #3 on issue 2540 by renato.c...@gmail.com: log() not working properly http://code.google.com/p/sympy/issues/detail?id=2540 The problem is that the separation is only valid if the symbols are positive. So this works: x, y = symbols('x y', positive=True) log(x*y).expand() log(x)

Re: Issue 2540 in sympy: log() not working properly

2011-07-02 Thread sympy
Updates: Status: Invalid Comment #4 on issue 2540 by asmeurer: log() not working properly http://code.google.com/p/sympy/issues/detail?id=2540 Exactly. If you look right above that line in the test file, you can see that p and q are defined as p, q = symbols('p,q', positive=True) r