There are algorithms that depend on being able to send more symbols
than equations and obtain a dictionary containing the symbols solved
for and their values, so *not* returning the symbol information in
some way is not an option. This being the case we have to figure out
the cleanest way to send
I'm personally a fan of returning some kind of dictionary (whether
that should be a Python dict or a SymPy Dict I don't know).
Aaron Meurer
On Tue, Sep 20, 2011 at 9:16 AM, smichr smi...@gmail.com wrote:
There are algorithms that depend on being able to send more symbols
than equations and
Ondrej Certik wrote:
Hi,
we were just discussing with Aaron on #sympy IRC what should the
solve() and dsolve() return. Here is what Mathematica is doing and I
like that a lot:
solve(whatever) return a list of dicts.
What are the benefits of this instead of simply return a list with
Ühel kenal päeval, P, 2009-05-17 kell 22:49, kirjutas Ondrej Certik:
Hi,
solve(whatever) return a list of dicts. You can find lots of examples here:
It should also handle lists with infinite amount of solutions:
Currently we miss some of the solutions:
In [30]: solve(cos(pi*x), x)
Out[30]:
On May 18, 2:26 pm, Fabian Pedregosa fab...@fseoane.net wrote:
Ondrej Certik wrote:
[...]
So here are some particular examples using sympy syntax:
solve(Eq(x**2, 1), x)
[{x: 1}, {x: -1}]
don't see the benefit over [1,-1]. It is clear that it is relative to x
since you passed that