risch: "robustify" test_heurisch_fractions()X
commit408237f086ea2730ad3559a0b34d0f8a063d9fe7
authorKirill Smelkov <kirr@landau.phys.spbu.ru>
Tue, 29 Jul 2008 07:36:41 +0000 (29 11:36 +0400)
committerKirill Smelkov <kirr@landau.phys.spbu.ru>
Tue, 29 Jul 2008 07:36:41 +0000 (29 11:36 +0400)
treef926cd54ee86ea4fe2710a54384d9b8606d9adae
parent3ff20adbd5e6561af1651254cf069ba52f2e5d49
risch: "robustify" test_heurisch_fractions()

When integrating depending on tests invokation order it either ruturns

    5*log(+2*x**6 - 5) / 12,     or
    5*log(-2*x**6 + 5) / 12

Since

    log(-x) = i + log(x)

both integration results are still correct, but I'd suspect something is wrong here.

Mateusz, I need your help to track this -- this does not depend on caching be
turned on or off.

Mateusz:

"""
Yes, both results are correct but we must finally do something to fix
this annoying behavior (I mean playing with minus sign in expressions
and dependence on term order which, in case of expressions, is almost
always irrevelant).

+1

Thanks,
Mateusz
"""

Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Mateusz Paprocki <mattpap@gmail.com>
sympy/integrals/tests/test_risch.py