Re: [sympy] [Proposal] Mutable expressions in SymPy

2021-10-05 Thread S.Y. Lee
I'm not sure if you have heard about, or familiar with term graph , but I think that this can have the potential to generalize Basic object and make it to be a more efficient form, without 'mutability' trick to reduce the time and space complexity. On

Re: [sympy] [Proposal] Mutable expressions in SymPy

2018-03-24 Thread Isuru Fernando
On Sat, Mar 24, 2018 at 11:16 AM, Aaron Meurer wrote: > Assumedly the point of this is for performance, so that something like > (x + y + z) + w doesn't require rebuilding x + y + z. > > I've thought for some time that Add should save its coeff: term > dictionary, to make

Re: [sympy] [Proposal] Mutable expressions in SymPy

2018-03-24 Thread Aaron Meurer
Assumedly the point of this is for performance, so that something like (x + y + z) + w doesn't require rebuilding x + y + z. I've thought for some time that Add should save its coeff: term dictionary, to make further additions faster. I'm not sure if this requires mutability. I believe