[PATCH] Use correct expand submethod in series code

2009-07-08 Thread ronan . lamy
From: Ronan Lamy Mul._eval_expand_mul, Pow._eval_expand_multinomial and Pow._eval_nseries internally used excessively broad .expand() method instead of more focused methods. This degraded performance and caused disallowed expand hints to be applied anyway in some cases. This has been fixed and

Re: [PATCH] Use correct expand submethod in series code

2009-07-08 Thread Ronan Lamy
Le mercredi 08 juillet 2009 à 12:27 -0600, Aaron S. Meurer a écrit : > Thanks for fixing this. Most of this is stuff that I messed up. > > Aaron Meurer It's not so easy to do. You need to understand the structure of the expressions at each step and which transformations you want to apply. I bac

Re: Subject: [PATCH] Implemented code to expand negative integer powers

2009-08-09 Thread Ronan Lamy
Le dimanche 09 août 2009 à 01:31 -0600, Ondrej Certik a écrit : > On Sun, Aug 9, 2009 at 1:25 AM, Luke wrote: > > Attached is a patch that allows expand to handle negative integer > > powers. This effectively allows expressions like: > > expr = (x+y)**(-2) > > to be expanded by calling > > expr.e

Re: Subject: [PATCH] Implemented code to expand negative integer powers

2009-08-09 Thread Ronan Lamy
Le dimanche 09 août 2009 à 16:34 -0700, Luke a écrit : > > > > * This line suggests that it would be helpful to create an 'inverse' > > property - less work is needed to create this inverse than for a generic > > Pow instance. > > Could you elaborate on what you mean here? Do you mean an inverse

Re: documentation about hashing improved

2009-11-29 Thread Ronan Lamy
Le dimanche 29 novembre 2009 à 17:51 +0100, Vinzent Steinberg a écrit : > I now took a real-world example from sympy. > > Vinzent On 32-bit, you've merely replaced one failure with another - so it's maybe not such a good exemple. Ronan -- You received this message because you are subscribed t

Re: Fix issue 1920: SymTuple doesn't rebuild itself

2010-04-30 Thread Ronan Lamy
Le vendredi 30 avril 2010 à 14:23 -0700, Ondrej Certik a écrit : > On Fri, Apr 30, 2010 at 6:26 AM, jegerjensen wrote: > >> Also, shouldn't this go into sympy.core? > >> > >> Ondrej > >> """ > > > > That is probably a good idea. Where should we put the decorator > > _tuple_wrapper? Or should the

Re: Fix issue 1920: SymTuple doesn't rebuild itself

2010-04-30 Thread Ronan Lamy
Le vendredi 30 avril 2010 à 16:06 -0700, Ondrej Certik a écrit : > On Fri, Apr 30, 2010 at 3:04 PM, Ronan Lamy wrote: > > Le vendredi 30 avril 2010 à 14:23 -0700, Ondrej Certik a écrit : > >> On Fri, Apr 30, 2010 at 6:26 AM, jegerjensen > >> wrote: > >

Re: Fix issue 1920: SymTuple doesn't rebuild itself

2010-04-30 Thread Ronan Lamy
Le vendredi 30 avril 2010 à 19:59 -0600, Aaron S. Meurer a écrit : > On Apr 30, 2010, at 5:26 PM, Ronan Lamy wrote: > > > Le vendredi 30 avril 2010 à 16:06 -0700, Ondrej Certik a écrit : > >> On Fri, Apr 30, 2010 at 3:04 PM, Ronan Lamy wrote: > >>> Le vendredi 30

Re: disconnect-assumptions branch comments

2010-06-17 Thread Ronan Lamy
Le jeudi 17 juin 2010 à 14:02 -0700, Ondrej Certik a écrit : > Yes, in this branch we should brake compatibility. We should totally > get rid of the old assumptions, thus breaking compatibility. Make sure > that things work nicely, all tests pass and there are no hacks. I don't understand. Have Ch

Re: disconnect-assumptions branch comments

2010-06-18 Thread Ronan Lamy
Le vendredi 18 juin 2010 à 02:02 +0200, Vinzent Steinberg a écrit : > Using the local assumptions hack we could keep compatibility and avoid > rewriting sympy. I don't see how. Putting everything into global_assumptions works just as well, it's only less efficient. Changing the assumption system

Re: Hilbert Space Review

2010-07-05 Thread Ronan Lamy
Le lundi 05 juillet 2010 à 19:17 +0200, Øyvind Jensen a écrit : > > Yep. I just got back from SciPy and I talked a lot with one of the > > devs of theano: > > > > http://deeplearning.net/software/theano/ > > Thanks for bringing theano to my attention! Yes, that's very interesting! > > Are you

Re: SAT Solver and Improvements to the Assumptions System

2010-08-10 Thread Ronan Lamy
Le lundi 09 août 2010 à 13:15 -0700, Christian Muise a écrit : > Hello, > I'd like to formally request that this branch be merged into the > SymPy trunk: > - http://github.com/haz/sympy/tree/soc-final > That's quite a big chunk to review! Globally, this looks good, but I don't have time to revie

Re: SAT Solver and Improvements to the Assumptions System

2010-08-10 Thread Ronan Lamy
Le mardi 10 août 2010 à 14:07 -0400, Christian Muise a écrit : > I really don't think that static compilation to Python > code is a good idea. It prevents any extension to the system > and makes > it very hard to maintain. It would be much more useful to > c

Re: SAT Solver and Improvements to the Assumptions System

2010-09-02 Thread Ronan Lamy
Le mercredi 25 août 2010 à 10:56 -0700, Christian Muise a écrit : > Vinzent, et al, does the branch seem alright to go in at this point? > I'm sitting on this merge request before bringing up the more > debatable points surrounding the removal of the old assumption system. > Thanks. > > Cheers >

Re: Issue 1915 in sympy: Unify make_list with as_Add/as_Mul

2010-11-19 Thread Ronan Lamy
Le vendredi 19 novembre 2010 à 01:28 -0800, smichr a écrit : > > On Nov 19, 8:08 am, sy...@googlecode.com wrote: > > Comment #10 on issue 1915 by ronan.l...@gmail.com: Unify make_list with > > as_Add/as_Mulhttp://code.google.com/p/sympy/issues/detail?id=1915 > > > > I think I've found a better n

Re: Number of characters in expressions

2010-11-30 Thread Ronan Lamy
Le mardi 30 novembre 2010 à 10:42 -0800, freevryheid a écrit : > hmm > > 'Mul' object has no attribute 'count_chars' > > On Nov 30, 12:38 pm, freevryheid wrote: > > What about adding the following function to basic.py: > > > > def count_chars(self): > > """ > > Return the num

Re: Number of characters in expressions

2010-11-30 Thread Ronan Lamy
Le mardi 30 novembre 2010 à 14:58 -0700, Aaron S. Meurer a écrit : > There is also .count_ops(), which is faster and also gives a better > insight into the actual size of an expression, since it doesn't give > more weight to " + " and to symbols and numbers that are more than one > character long.

[sympy] Fix bin/coverage_report.py (#1404)

2012-07-05 Thread Ronan Lamy
Coverage test runs must be run in the same process. You can merge this Pull Request by running: git pull https://github.com/rlamy/sympy coverage_report Or you can view, comment on it, or merge it online at: https://github.com/sympy/sympy/pull/1404 -- Commit Summary -- * Fix bin/coverage_r

[sympy] Speed up cache decorator (#1436)

2012-07-21 Thread Ronan Lamy
This makes all cache retrievals faster, eg: before In [1]: %timeit Pow(y, 2) 10 loops, best of 3: 9.8 us per loop after In [1]: %timeit Pow(y, 2) 10 loops, best of 3: 7.5 us per loop You can merge this Pull Request by running: git pull https://github.com/rlamy/sympy caching Or you ca