On Thu, Jan 22, 2015 at 7:49 AM, Carsten Knoll <
Carste...@gmx.de> wrote:
> I try to include sympy in teaching material.
>
> When doing this, the focus is not on programming nor implementation
> details. The CAS should be as "transparent" as possible. The CAS-using
> code should read like the math done in a textbook.
>
> I think sympy is very close to this. However, there are some annoying
> obstacles to transparency.
>
> One of it is the return behavior of solve. There are at least three
> cases (if a solution can be found):
>
> * a dict
> * a list of tuples
> * a list of dicts
>
> for me it is hard to predict, when which case will occur. The behavior
> can be influenced by keyword args but this would require additional
> (off-topic) explanation to the students..
I often face the same problem when I am working on my book. What I do
is just stick to one approach for the chapter/book. So, for example,
for this case, I just pass 'dict=True' all the time. It requires me to