Dear all,
So I'm trying to use Sympy to solve a simple system with indexed symbols,
something like this:
Eq 1.y[i] = sqrt(x[i])
Eq 2.m = Sum(z[i] * y[i], (i, 0, n)) / Sum(x[i], (i, 0, n))
where, *x, y, z, i, n and m* are symbols (x, y and z are *IndexedBase* and
Performance is a valid concern. We should definitely check that.
The __slots__ part I don't know. That could probably be done differently.
Regarding the implementation itself, how would you do it? The ability
to make Mul or Add do custom stuff for custom objects is a very
commonly requested
Le 19/04/17 à 19:00, Francesco Bonazzi a écrit :
On Wednesday, 19 April 2017 17:05:08 UTC+2, Ronan Lamy wrote:
Le 18/04/17 à 21:28, Francesco Bonazzi a écrit :
> I'm gonna merge this PR soon:
>
> https://github.com/sympy/sympy/pull/12508
On Wednesday, 19 April 2017 17:05:08 UTC+2, Ronan Lamy wrote:
>
> Le 18/04/17 à 21:28, Francesco Bonazzi a écrit :
> > I'm gonna merge this PR soon:
> >
> > https://github.com/sympy/sympy/pull/12508
>
> Wow, that's horrifying! Good luck maintaining it!
>
>
Why is it horrifying?
--
You
Le 18/04/17 à 21:28, Francesco Bonazzi a écrit :
I'm gonna merge this PR soon:
https://github.com/sympy/sympy/pull/12508
Wow, that's horrifying! Good luck maintaining it!
If anyone oppose merging the PR in its current state, please write it
before it's too late.
--
You received this