Re: [sympy] Sympy Installation Problem

2014-04-11 Thread farrokh959
Dear Alexey, Thank you very much. I downloaded cp720.py and it solved my problem. Best, Mojtaba -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@g

Re: [sympy] Re: Tensor refactory

2014-04-11 Thread Aaron Meurer
I think Interval was just added for its own sake. Aaron Meurer On Fri, Apr 11, 2014 at 11:26 AM, Matthew Rocklin wrote: > All I know is that Interval and Union were there before I got here. Maybe > integrals? > > I've changed things in FiniteSet and had some core things break. > > But yes, Set

Re: [sympy] Re: Tensor refactory

2014-04-11 Thread Matthew Rocklin
All I know is that Interval and Union were there before I got here. Maybe integrals? I've changed things in FiniteSet and had some core things break. But yes, Set is not Expr or Basic. On Fri, Apr 11, 2014 at 9:09 AM, Aaron Meurer wrote: > I don't mean the core as in sympy.core. I mean the c

Re: [sympy] Re: Tensor refactory

2014-04-11 Thread Aaron Meurer
I don't mean the core as in sympy.core. I mean the core as in the base classes Basic, Expr, Add, Mul (and to some extend the numbers). Stuff that *everything* uses. Not everything uses the sets. Unless I'm missing some very core use of the sets. Aaron Meurer On Fri, Apr 11, 2014 at 11:05 AM, Matt

Re: [sympy] Re: Tensor refactory

2014-04-11 Thread Matthew Rocklin
The benefit of sets is that everyone can understand it but it still has enough complex elements (ProductSet, EmptySet) to capture the complexity of a lot of the more challenging systems (though probably not quite as challenging as tensors.) On Fri, Apr 11, 2014 at 9:05 AM, Matthew Rocklin wrote:

Re: [sympy] Re: Tensor refactory

2014-04-11 Thread Matthew Rocklin
Well, sets *is* in the core. Interval, Union, and FiniteSet are all used in various parts. Fortunately though I think we refactor without changing functionality. So far I've just replaced a custom double dispatch system with multipledispatch. On Fri, Apr 11, 2014 at 8:46 AM, Aaron Meurer wrot

Re: [sympy] Re: Tensor refactory

2014-04-11 Thread Aaron Meurer
Oh, that's even better. Then we don't have to touch the core, and we can merge even experimental things faster. Aaron Meurer On Fri, Apr 11, 2014 at 10:40 AM, Matthew Rocklin wrote: > Sets is a good play module for this purpose. Union and Intersection > simplify pairwise much like Add and Mul w

Re: [sympy] Re: Tensor refactory

2014-04-11 Thread Matthew Rocklin
Sets is a good play module for this purpose. Union and Intersection simplify pairwise much like Add and Mul would. I like the pairwise methods we have but the strategy to orchestrate them could use some cleaning up. Might be a good place to build intuition. See https://github.com/sympy/sympy/pu

Re: [sympy] Re: Tensor refactory

2014-04-11 Thread Aaron Meurer
This has always been the original motivation for multiple dispatch, at least in my mind. You can't make objects that do their own thing in Add or Mul or whatever. There are a dozen example of this throughout SymPy, and a dozen more in user code. There are many hacky ways around it, but none are sat

Re: [sympy] Re: Tensor refactory

2014-04-11 Thread F. B.
On Friday, April 11, 2014 1:29:11 AM UTC+2, Aaron Meurer wrote: > > There are probably little ways around these things, but nothing clean > without dispatching in the core. > Another point in favor of multiple dispatching. By the way, tensor expressions should just become ordinary expression w