Skip to content

Commit 019542c

Browse files
committed
Fix sympy test
This test was failin localy with Expression: SymPy.simplify(symbolics_to_sympy(Symbolics.solve_for(expr, p))) == (SymPy.solve(sexpr, sp))[1] Evaluated: -2*t*(x^2 + y(t) - 1)/(x^2 + x + y(t) - 1) == 2*t*(-x^2 - y(t) + 1)/(x^2 + x + y(t) - 1) While equal, they are not the same expression. `SymPy.simplify` and `SymPy.solve` don't seem to guarantee identical expressions, so pass both results through `simplify` to ensure they are comparable.
1 parent 43f93d0 commit 019542c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sympy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ expr = x * p + (x^2 - 1 + y) * (p + 2t)
2121
sexpr = symbolics_to_sympy(expr)
2222
sp = symbolics_to_sympy(p)
2323

24-
@test SymPy.simplify(symbolics_to_sympy(Symbolics.solve_for(expr, p))) == SymPy.solve(sexpr, sp)[1]
24+
@test SymPy.simplify(symbolics_to_sympy(Symbolics.solve_for(expr, p))) == SymPy.simplify(SymPy.solve(sexpr, sp)[1])

0 commit comments

Comments
 (0)