Issue 1561 in sympy: lambdify doesn't seem to work with logic operations

2009-07-28 Thread codesite-noreply
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1561 by tom.denniston: lambdify doesn't seem to work with logic operations http://code.google.com/p/sympy/issues/detail?id=1561 I'm using sympy 0.6.5 I took an example from the docs on the logic module y|xy and I tried to

Re: Improve test runner

2009-07-28 Thread Vinzent Steinberg
2009/7/28 Vinzent Steinberg vinzent.steinb...@googlemail.com: 2009/7/27 Ondrej Certik ond...@certik.cz: +    else: +        paths = [p for p in glob.glob('sympy/*/tests/test_*.py') +                 if any(a in p for a in args)] +        t.add_paths(paths) ^^ Is this going to work for more

Re: Changed XFAIL test to pass

2009-07-28 Thread Vinzent Steinberg
2009/7/27 Ondrej Certik ond...@certik.cz: On Mon, Jul 27, 2009 at 2:59 AM, Vinzent Steinbergvinzent.steinb...@googlemail.com wrote: Possibly it could still fail on x86_64, but the buildbot will tell it, so I'm +1. It works on 64bits. Please push it in. It's in. Vinzent

Re: Improve test runner

2009-07-28 Thread Ondrej Certik
On Tue, Jul 28, 2009 at 5:17 AM, Vinzent Steinbergvinzent.steinb...@googlemail.com wrote: 2009/7/28 Vinzent Steinberg vinzent.steinb...@googlemail.com: 2009/7/27 Ondrej Certik ond...@certik.cz: +    else: +        paths = [p for p in glob.glob('sympy/*/tests/test_*.py') +                 if

[sympy] Re: magic squares

2009-07-28 Thread Sebastian Haase
any suggestion, where it would fit into the sympy tree ? - Sebastian On Mon, Jul 27, 2009 at 7:25 PM, Ondrej Certikond...@certik.cz wrote: Hi Sebastian! On Mon, Jul 27, 2009 at 6:57 AM, Sebastian Haaseseb.ha...@gmail.com wrote: Hi, would it conceptually fit to add a function (somwhere)

[sympy] Re: magic squares

2009-07-28 Thread Ondrej Certik
On Tue, Jul 28, 2009 at 1:40 AM, Sebastian Haaseseb.ha...@gmail.com wrote: any suggestion, where it would fit into the sympy tree ? I would add it as a new file, probably to: sympy/physics or sympy/ntheory Unless you can find a better place. Ondrej

[sympy] sympy.latex() questions

2009-07-28 Thread wflynny
SymPy - I've been using multiprocessing/subprocessing in conjunction with sympy.latex(). There are a few things that I noticed that I was unsure about. Firstly, if there is a float in the expression I feed to the .latex() function, is there anyway I can set the precision of the resulting LaTeX

[sympy] Re: sympy.latex() questions

2009-07-28 Thread Freddie Witherden
Hi, I may be a tad out of touch with recent sympy developments, but here goes. (And I am sure someone will correct me if I am wrong on any of these points.) Firstly, if there is a float in the expression I feed to the .latex() function, is there anyway I can set the precision of the

[sympy] Re: sympy.latex() questions

2009-07-28 Thread william ratcliff
Is the breqn package/algorithms incorporated into mathtex? William On Tue, Jul 28, 2009 at 11:39 AM, Freddie Witherden fred...@witherden.orgwrote: Hi, I may be a tad out of touch with recent sympy developments, but here goes. (And I am sure someone will correct me if I am wrong on any of

[sympy] Re: sympy.latex() questions

2009-07-28 Thread Freddie Witherden
On 28 Jul 2009, at 16:49, william ratcliff wrote: Is the breqn package/algorithms incorporated into mathtex? Not currently, although it has been requested and so have been looking into it. Determining where to break an equation is quite a complex task but I hope to have a prototype in a

[sympy] Re: sympy.latex() questions

2009-07-28 Thread Alan Bromborsky
Freddie Witherden wrote: On 28 Jul 2009, at 16:49, william ratcliff wrote: Is the breqn package/algorithms incorporated into mathtex? Not currently, although it has been requested and so have been looking into it. Determining where to break an equation is quite a complex task

[sympy] Polynomial Decompose Error for Quartics+Cubics

2009-07-28 Thread wflynny
While finding eigenvalues for a matrix of mine, I ran into a polynomial decompose error. It seems that when a polynomial has both a cubic and quartic term and coefficients that consist of symbols, factortools.py runs into trouble. To simplify the error, here is some test code that throws the same

[sympy] Automatic distribution of numbers versus symbols

2009-07-28 Thread Luke
I'm exploring Sympy's behavior with regard to automatic distribution of expressions. Purely from experimenting, I noticed a few things: In [1]: exp1 = x*(x-y) In [2]: exp2 = x*x-x*y In [3]: exp3 = 4*(x-y) In [4]: exp4 = 4*x-4*y In [5]: exp1 Out[5]: x⋅(x - y) In [6]: exp2 Out[6]: 2 -x⋅y +

[sympy] Re: Automatic distribution of numbers versus symbols

2009-07-28 Thread Ondrej Certik
On Tue, Jul 28, 2009 at 5:09 PM, Lukehazelnu...@gmail.com wrote: I'm exploring Sympy's behavior with regard to automatic distribution of expressions.  Purely from experimenting, I noticed a few things: In [1]: exp1 = x*(x-y) In [2]: exp2 = x*x-x*y In [3]: exp3 = 4*(x-y) In [4]: exp4 =

[sympy] Re: Automatic distribution of numbers versus symbols

2009-07-28 Thread Aaron S. Meurer
This is the relevant code from Mul.flatten() (line 305 in core/mul.py): if len(c_part)==2 and c_part[0].is_Number and c_part[1].is_Add: # 2*(1+a) - 2 + 2 * a coeff = c_part[0] c_part = [Add(*[coeff*f for f in c_part[1].args])] So it autocombines

[sympy] Re: Automatic distribution of numbers versus symbols

2009-07-28 Thread Ondrej Certik
On Tue, Jul 28, 2009 at 7:48 PM, Aaron S. Meurerasmeu...@gmail.com wrote: This is the relevant code from Mul.flatten() (line 305 in core/mul.py):         if len(c_part)==2 and c_part[0].is_Number and c_part[1].is_Add:             # 2*(1+a) - 2 + 2 * a             coeff = c_part[0]          

[sympy] ENZCon 2009. Call for papers.

2009-07-28 Thread Tim Molteno
Dear Colleague, The sixteenth Electronics New Zealand Conference (ENZCon 2009) is being held at the University of Otago 18-20 November 2009. You are warmly invited to submit papers in the broad area of electronics. This includes, but is not limited to: Electronics