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 to evaluate to True!
    assert log(p**2) != 2*log(p)          #ok doesn't work
    assert log(p**2).expand() == 2*log(p) # Assume it don't work
assert log(x**2).expand() != 2*log(x) # then how come it is True as it is just opposite to previous one. Typo? assert log(p**q) != q*log(p) # similar to last two just power is a Symbol() type
    assert log(exp(p)) == p
    assert log(p*q) != log(p) + log(q)    # Ok, it doesn't work
assert log(p*q).expand() == log(p) + log(q) # But this also don't work. What is it doing in assertions then?? :-o

    assert log(-exp(p)) != p + I*pi
    assert log(-exp(x)).expand() != x + I*pi #ok
assert log(-exp(r)).expand() == r + I*pi #same expressions but different assertion.

Am I misunderstanding something or the cases above are real typos?

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@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