On Thu, Jan 22, 2015 at 7:49 AM, Carsten Knoll <[email protected]> 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
explain what a Python dictionary is, but I don't think you can
*really* avoid getting into some Python while teaching with SymPy.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CANODV3mi3tAHpWaCHDyihn4_9DaPkR9dXfVdGgZL-kFuCiLghw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to