Comment #6 on issue 2011 by Vinzent.Steinberg: less self-confident simplify
http://code.google.com/p/sympy/issues/detail?id=2011

Alas, physics-related failure is not the only one on my 64 bit system:

________________________________________________________________________________
_______________ sympy/solvers/tests/test_ode.py:test_separable5 ________________ File "/home/one/src/sympy/sympy/solvers/tests/test_ode.py", line 368, in test_separable5
    assert dsolve(eq15, f(x), hint='separable') == sol15
AssertionError
________________________________________________________________________________
______________ sympy/solvers/tests/test_solvers.py:test_tsolve_1 _______________ File "/home/one/src/sympy/sympy/solvers/tests/test_solvers.py", line 247, in test_tsolve_1
    assert solve(y-a*x**b , x) == [y**(1/b)*(1/a)**(1/b)]
AssertionError
________________________________________________________________________________
______________ sympy/solvers/tests/test_solvers.py:test_tsolve_2 _______________ File "/home/one/src/sympy/sympy/solvers/tests/test_solvers.py", line 255, in test_tsolve_2
    assert solve(y-a*x**b, x) == [y**(1/b)*(1/a)**(1/b)]
AssertionError

Why is there two times the same test? Interactively, I get this for the second failure:

In [3]: solve(y-a*x**b , x)
Out[3]:
⎡    ⎽⎽⎽⎤
⎢   ╱ y ⎥
⎢b ╱  ─ ⎥
⎣╲╱   a ⎦

In [4]: solve(y-a*x**b, x) == [y**(1/b)*(1/a)**(1/b)]
Out[4]: False

In [3]: solve(y-a*x**b , x)
Out[3]:
⎡    ⎽⎽⎽⎤
⎢   ╱ y ⎥
⎢b ╱  ─ ⎥
⎣╲╱   a ⎦

In [4]: solve(y-a*x**b, x) == [y**(1/b)*(1/a)**(1/b)]
Out[4]: False

In [5]: srepr(solve(y-a*x**b , x))
Out[5]: [Pow(Mul(Symbol('y'), Pow(Symbol('a'), NegativeOne)), Pow(Symbol('b'), NegativeOne))]

In [6]: srepr([y**(1/b)*(1/a)**(1/b)])
Out[6]: [Mul(Pow(Symbol('y'), Pow(Symbol('b'), NegativeOne)), Pow(Pow(Symbol('a'), NegativeOne), Pow(Symbol('b'), NegativeOne)))]

--
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to