[PATCH] move all py.test imports into try/except clause (#1210)

2008-11-21 Thread Ondrej Certik
This is important, because the new py.test breaks sympy (import py works, but not the later imports). This patch should fix it. --- sympy/utilities/pytest.py |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sympy/utilities/pytest.py b/sympy/utilities/pytest.py inde

Re: Improves the vandermonde example.

2008-11-21 Thread Vinzent Steinberg
On Nov 20, 11:23 pm, [EMAIL PROTECTED] wrote: > From: Andy R. Terrel <[EMAIL PROTECTED]> > > --- >  examples/intermediate/vandermonde.py |  173 > ++ >  1 files changed, 155 insertions(+), 18 deletions(-) > > diff --git a/examples/intermediate/vandermonde.py > b/

Re: Implicit subs syntax like f(x=1, y=2)

2008-11-21 Thread Brian Granger
Ahhh, I didn't realize this problem was there. > I don't like this behavior. And I don't like that we need to use a > hack to fix it. Me neither, playing with the frames is messy stuff > I think it's because we are misusing the **kw arguments. The kw > arguments are meant to specify options to f

Re: Implicit subs syntax like f(x=1, y=2)

2008-11-21 Thread Brian Granger
> 2) only allow the f(x=3), but do not use the hack, thus it will not > work for x = Symbol("a") But this...will confuse users. I often use variable names that differ from the symbol. > 3) allow both f(x=3) and use the hack. The hack is...well, a hack so this isn't very appealing. On Fri, Nov

Re: Patch is an added function Gaussian Integral in Integrals.py, to solve the definite integral of exp(poly).

2008-11-21 Thread Pekeika
Hi Ondrej, > In [34]: g.match(a*exp(b))[a] > Out[34]: 0.886226925452758 > > In [35]: g.match(a*exp(b))[b] > Out[35]: >                                                                2 >   2.25   1.50⋅vy   0.250⋅vy > - + ─── - ──