Re: [PATCH 1/1] Added test to prevent divide by zero

2009-03-22 Thread Ondrej Certik
On Sat, Mar 21, 2009 at 9:37 PM, Aaron Meurer asmeu...@gmail.com wrote: ---  sympy/solvers/solvers.py |    2 +-  1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sympy/solvers/solvers.py b/sympy/solvers/solvers.py index 60a1ef5..6d97225 100644 --- a/sympy/solvers/solvers.py

Re: Boolean Algebra module

2009-03-22 Thread Vinzent Steinberg
On Mar 21, 4:04 pm, Akshay Srinivasan akshaysriniva...@gmail.com wrote: On Mar 21, 3:52 pm, Vinzent Steinbergvinzent.steinb...@googlemail.com wrote: Assumptions are currently borked in sympy (thus Fabian's rewrite). But Indeed. The whole assumptions part looks very messy. I tried to each of

Re: Boolean Algebra module

2009-03-22 Thread Akshay Srinivasan
Shouldn't it be better to implement the assumptions system with specialised classes instead of using strings and some make-shift classes ? A sort of abstraction layer, so to speak. Keeping the layer itself small will make it easier to implement it in Cython and should be enough to more than

[PATCH 0/2] Add preliminary solver for separable differential equations case

2009-03-22 Thread Priit Laes
Hey! I played a bit with sympy and when trying to solve some quasilinear differential equations, but had to first make sure that sympy can handle some simpler forms of PDEs. The patches can be seen from: https://code.plaes.org/git/sympy/log/?h=pde-upstream Cheers, Priit :)

[PATCH 1/1] Added test to make sure Bernoulli doesn't try to solve for n==1

2009-03-22 Thread Aaron Meurer
--- sympy/solvers/tests/test_solvers.py |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/sympy/solvers/tests/test_solvers.py b/sympy/solvers/tests/test_solvers.py index 389b661..017accf 100644 --- a/sympy/solvers/tests/test_solvers.py +++

Re: Added test to make sure Bernoulli doesn't try to solve for n==1

2009-03-22 Thread Priit Laes
Why not fix the cause, instead of hiding the problem: diff --git a/sympy/solvers/solvers.py b/sympy/solvers/solvers.py index 60a1ef5..6d97225 100644 --- a/sympy/solvers/solvers.py +++ b/sympy/solvers/solvers.py @@ -584,7 +584,7 @@ def solve_ODE_first_order(eq, f): n = Wild('n',