If I understand correctly the commit logs and the blog posts of the
gsoc student that did this some years ago, sympy's evaluation to
floats is too slow in order to use for plotting. The solution was to
"compile" expressions to standard precision non-symbolic numpy or just
python.math. The horrifying solution employed both in the old lambdify
and in my code is to use eval() and some string processing. This is
(or not?) the optimal workaround that was found around the fact that
python function calls are inherently slow (thus prohibiting the use of
nested lambdas instead of eval). I believe that this can be called
"imitating a closure".

I suppose that this makes you, as a professional programmer, get a
headache over the fragile design :) I am sorry. I am not particularly
proud of this part of my code.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to