Pull request: Separation of variables for PDEs

2009-06-30 Thread Priit Laes
Hey! I have made the final documentation and code touches to my many variable separation trees, I have rebased and rewritten the history (only ) and now I consider it to be tree-ready :) Please pull from my github's 'variable-separation' branch. You can pull from git://github.com/plaes/sympy.gi

[PATCH] Add some missing Greek characters.

2009-06-30 Thread Priit Laes
Noticed today, that some of the upper case characters were not showing in latex output... Author: Priit Laes Date: Tue Jun 30 23:53:10 2009 +0300 Add some missing Greek characters. Signed-off-by: Priit Laes diff --git a/sympy/printing/latex.py b/sympy/printing/latex.py index

[PATCH] Add PDE support for deriv_degree

2009-07-01 Thread Priit Laes
eachothers toes in the future... As usual - all tests pass :) You pull it from github: git://github.com/plaes/sympy.git branch: 'pde-deriv-degree' [PATCH] Add PDE support for deriv_degree. Signed-off-by: Priit Laes --- sympy/solvers/solvers.py| 36 +

[PATCH] Move expand and friends from core.functions to simplify.expand

2009-07-11 Thread Priit Laes
While trying to figure out the cause of bug #1527, I noticed some low-hanging stuff that could be easily fixed.. :) While looking around in sympy/core/function.py I noticed it contains bunch of extend*() functionality, which IMHO does not belong there. So I decided to move all these functions to

Re: [PATCH] Move expand and friends from core.functions to simplify.expand

2009-07-12 Thread Priit Laes
Ühel kenal päeval, L, 2009-07-11 kell 13:25, kirjutas Alan Bromborsky: > Aaron S. Meurer wrote: > > On Jul 11, 2009, at 6:59 AM, Priit Laes wrote: > > > >> I also introduced one bug with manual as GA.extend() function is > >> hijacking the regular extend() fu

[PATCH] Fix two typos, one functional, one in comment

2009-07-13 Thread Priit Laes
Following patch fixes two typos, one of them a bit more serious... >From 69bef9ea428df309fa04d888c00b43858b1b8a1c Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Mon, 13 Jul 2009 23:06:29 +0300 Subject: [PATCH] Fix two typos, one functional, one in comment. Signed-off-by: Priit L

Re: Pull request: Separation of variables for PDEs

2009-07-28 Thread Priit Laes
Ühel kenal päeval, E, 2009-07-27 kell 13:07, kirjutas Ondrej Certik: > On Mon, Jul 27, 2009 at 3:34 AM, Vinzent > Steinberg wrote: > > > > 2009/6/30 Priit Laes : > >> > >> Hey! > >> > >> I have made the final documentation and code touches to

[PATCH] Add xdg-open to the list of print preview viewers.

2009-11-08 Thread Priit Laes
s+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en -~--~~~~--~~--~--~--- >From 0bdcb1052079fdc1fd3d397bccc6511f266ee790 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sun, 8 Nov 2009 18:58:02

Re: [PATCH] Add xdg-open to the list of print preview viewers.

2009-11-11 Thread Priit Laes
Ühel kenal päeval, T, 2009-11-10 kell 23:26, kirjutas Vinzent Steinberg: > 2009/11/9 Vinzent Steinberg > Nice to see you back! > > Patch looks good so far, however I just noticed that my > xdg-open insists to use Firefox for pdfs... > > Vinzent >

Re: [PATCH] Add xdg-open to the list of print preview viewers.

2009-11-11 Thread Priit Laes
Ühel kenal päeval, T, 2009-11-10 kell 23:26, kirjutas Vinzent Steinberg: > 2009/11/9 Vinzent Steinberg > Nice to see you back! > > Patch looks good so far, however I just noticed that my > xdg-open insists to use Firefox for pdfs... > > Vinzent >

Re: [PATCH] Add xdg-open to the list of print preview viewers.

2009-11-11 Thread Priit Laes
Ühel kenal päeval, K, 2009-11-11 kell 14:22, kirjutas Vinzent Steinberg: > 2009/11/11 Priit Laes > > Ühel kenal päeval, T, 2009-11-10 kell 23:26, kirjutas Vinzent > Steinberg: > > > > 200

Re: B-splines and Piecewise branch for review

2010-03-10 Thread Priit Laes
Ühel kenal päeval, K, 2010-03-10 kell 15:08, kirjutas Brian Granger: > Hi, > > I have improved the Piecewise class and implemented B-splines. Here > is the branch on github: > > http://github.com/ellisonbg/sympy/tree/bg-piecewise It might be offtopic, but Github has implemented nice branch comp

Re: B-splines and Piecewise branch for review

2010-03-10 Thread Priit Laes
Ühel kenal päeval, K, 2010-03-10 kell 15:08, kirjutas Brian Granger: > Hi, > > I have improved the Piecewise class and implemented B-splines. Here > is the branch on github: > > http://github.com/ellisonbg/sympy/tree/bg-piecewise +def bspline_basis(d, knots, n, x, close=True): +"""The n-th

Auditing sourcecode using pyflakes

2010-03-17 Thread Priit Laes
install pyflakes when invoking `setup.py audit` Branch is located at http://github.com/plaes/sympy/commits/pyflakes Cheers, Priit Laes ;) -- You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patc...@go

Please review my 'unused-imports' branch

2010-03-17 Thread Priit Laes
Hey! Now that auditing support is in master, I went out there and picked some low-hanging fruit (unused imports) from the long list of issues reported by audit tool: 70 files changed, 87 insertions(+), 153 deletions(-) >From 545 warnings to 349 ;) Branch is here: http://github.com/plaes/sympy/c

Re: Please review my 'unused-imports' branch

2010-03-17 Thread Priit Laes
Ühel kenal päeval, K, 2010-03-17 kell 17:51, kirjutas Ondrej Certik: > On Wed, Mar 17, 2010 at 5:21 PM, Aaron Meurer wrote: > > I was actually referring to Priit's branch, but I guess polys will need to > > fixed too. :) I pushed my rebased branch to http://github.com/plaes/sympy/tree/unused-im

Re: issue 1356

2010-03-27 Thread Priit Laes
Ühel kenal päeval, L, 2010-03-27 kell 07:41, kirjutas Toon Verstraelen: > Hello, > > Could someone please review the patches of issue1356? > http://code.google.com/p/sympy/issues/detail?id=1356 IMHO, it would be more pythonic if it returns ValueError instead of TypeError when it encounters invali

Re: issue 1356

2010-03-27 Thread Priit Laes
Ühel kenal päeval, L, 2010-03-27 kell 08:58, kirjutas Toon Verstraelen: > Priit Laes wrote: > >> > > IMHO, it would be more pythonic if it returns ValueError instead of > > TypeError when it encounters invalid kwarg. > > A TypeError is what python raises when wro

[PATCH] Fix heuristic integration to support more general forms for asin/asinh results

2009-02-26 Thread Priit Laes
Patch here: http://plaes.org/files/2009-Q1/sympy-fix-asin-integral.patch Previously sympy failed to integrate things like this: In [3]: integrate(1/sqrt(9 + 4*x**2), x) Out[3]: ⌠ ⎮ 1 ⎮ ─ dx ⎮⎽⎽ ⎮ ╱2 ⎮ ╲╱ 9 + 4⋅x ⌡ With patch applied: In [1]: integrate(1/

[PATCH] Fix corner case for simplify() when exp() is involved...

2009-03-09 Thread Priit Laes
Ran into another problem with simplify().. Fix here: http://plaes.org/files/2009-Q1/sympy-exp-and-simplify.patch In [1]: simplify(exp(1)+exp(-exp(1))) --- TypeError Traceback (most recent call

[PATCH 1/2] Add PDE support for deriv_degree and split PDE/ODE out of dsolve()

2009-03-20 Thread Priit Laes
s+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en -~--~~~~--~~--~--~--- >From 30a529792788b849e82a80e64ebd2861bf0de1fe Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Fri, 20 Mar 2009 17:40:13

[PATCH 2/2] Added separable variable solver support for dsolve

2009-03-20 Thread Priit Laes
s+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en -~--~~~~--~~--~--~--- >From 50b2f25f84b44fa62aaef2ef8cf0e05fca2e8aea Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Fri, 20 Mar 2009 22:04:47

[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/2] Cleaned up dsolve, added PDE support for deriv_degree...

2009-03-22 Thread Priit Laes
Cleaned up dsolve, added PDE support for deriv_degree, moved ODE handling into its own function and add solver stub for PDEs. Signed-off-by: Priit Laes --- diff --git a/sympy/solvers/solvers.py b/sympy/solvers/solvers.py index 60a1ef5..30722c0 100644 --- a/sympy/solvers/solvers.py +++ b/sympy

[PATCH 2/2] Added simple PDE solver for equations with separable variables.

2009-03-22 Thread Priit Laes
Added simple PDE solver for equations with separable variables. --- diff --git a/sympy/solvers/solvers.py b/sympy/solvers/solvers.py index 30722c0..fe6713d 100644 --- a/sympy/solvers/solvers.py +++ b/sympy/solvers/solvers.py @@ -14,17 +14,17 @@ """ from sympy.core.sympify import sympify -from

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', exclude=[f(x)

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

2009-03-23 Thread Priit Laes
On Mar 23, 8:02 am, Ondrej Certik wrote: > On Sun, Mar 22, 2009 at 10:37 PM, Priit Laes wrote: > I think this was suggested by Aaron's previous patch. > Ouch. I missed Aaron's previous patch. But how about we add actually a solver for n == 1 case: Added support for Ber

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

2009-03-23 Thread Priit Laes
On Mar 23, 9:05 am, Ondrej Certik wrote: > On Mon, Mar 23, 2009 at 12:00 AM, Priit Laes wrote: > > > On Mar 23, 8:02 am, Ondrej Certik wrote: > >> On Sun, Mar 22, 2009 at 10:37 PM, Priit Laes wrote: > >> I think this was suggested by Aaron's previous

Re: Added simple PDE solver for equations with separable variables.

2009-03-23 Thread Priit Laes
On Mar 24, 12:56 am, Fabian Seoane wrote: > Added simple PDE solver for equations with separable variables. > > I think it doesn't work with functions that are not called f and g ... > calling my unknown functions a and b raised: > > NotImplementedError: dsolve_PDE: Cannot solve D(a(x), x)/(2*x)

Please check in some small fixes - bernoulli eq. solver corner case + typos and corrections

2009-04-11 Thread Priit Laes
I have added some patches to 'small-fixes' branch that is viewable on: https://code.plaes.org/git/sympy.git/ and pullable using following url: git://code.plaes.org/sympy.git Branch: small-fixes * Added corner case for Bernoulli equation. There was a corner case in Bernoulli equation where n =

Re: Please check in some small fixes - bernoulli eq. solver corner case + typos and corrections

2009-04-11 Thread Priit Laes
On Apr 11, 11:14 pm, Ondrej Certik wrote: > Hi Priit! > > The patches look good to me. Could you add more tests for the > separable equation solver? Currently there is only one. Just commit > more patches in your branch. Someone (I think Vincent) saw some problems there and I haven't had time to

[PATCH] Fix traceback when calculating simple integrals (issue #1417)

2009-05-12 Thread Priit Laes
p 17 00:00:00 2001 From: Priit Laes Date: Tue, 12 May 2009 22:23:35 +0300 Subject: [PATCH] Fix integrals containing sums with simple coeff*x term. Fixes bug #1417. --- sympy/integrals/rationaltools.py|6 +- sympy/integrals/tests/test_integrals.py |3 +++ sym

[PATCH] Rename Basic.is_fraction to Basic.is_rational_function

2009-05-14 Thread Priit Laes
group at http://groups.google.com/group/sympy-patches?hl=en -~--~~~~--~~--~--~--- >From 5d27fd77f72bc3887fae02ad568b00838227e3b8 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Thu, 14 May 2009 13:43:25 +0300 Subject: [PATCH 1/2] Rename Basic

[PATCH] Add test for issue 1406

2009-05-14 Thread Priit Laes
google.com/group/sympy-patches?hl=en -~--~~~~--~~--~--~--- >From b33806aa5e5e6cc14320dfe991f82cec2c70ad4b Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Thu, 14 May 2009 18:28:59 +0300 Subject: [PATCH 2/2] Added test for issue #1406. Signed-off-by: Priit Lae

[PATCH] Small cleanups for ODE tests

2009-05-14 Thread Priit Laes
ches?hl=en -~--~~~~--~~--~--~--- >From 1f854f3c16a85fb7dbee18ebf4f034386b5faef3 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sat, 11 Apr 2009 21:01:10 +0300 Subject: [PATCH 1/2] Small cleanups to the ODE solver and tests. Signed-off-by: Priit Laes --- sympy/solvers/solvers.py| 10 +-

[PATCH] Fix corner case in bernoulli ode solver

2009-05-14 Thread Priit Laes
om For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en -~--~~~~--~~--~--~--- >From ffc4f78386316e5a876d7d83672b72319fa01140 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sat, 11 Apr 2009 21:15:13 +0300 Subject: [PATCH 2/2]

Re: spherical bessel functions and utilities implemented

2009-05-15 Thread Priit Laes
Ühel kenal päeval, N, 2009-05-14 kell 23:32, kirjutas Ondrej Certik: > Hi, > > please review my spherical bessel patches: > I didn't check the math part, but in the jn_zeros() docstring there's method = "sympy" instead of "scipy" in one place. Priit :) --~--~-~--~~~---

Re: [PATCH] Fix corner case in bernoulli ode solver

2009-05-15 Thread Priit Laes
Ühel kenal päeval, N, 2009-05-14 kell 10:53, kirjutas Aaron S. Meurer: > I thought I already sent in a patch to fix this. Yes, but for some reason it was not applied... :( But this patch also adds solver for this extra case where bernoulli's solution cannot be used. --~--~-~--~~-