On 16/04/2022 12:18, Oscar Benjamin wrote:
Yes, this does work differently in SymEngine compared to SymPy. If SymPy could be changed to work the same way then it could also be a lot faster (without needing to be rewritten in C++). SymEngine has the same overall design as SymPy but makes different choices for some aspects of that design so that it is faster but at the same time incompatible.
I must say, SymPy symbolics seem fast enough to me, but I haven't tried to generate very large symbolic expressions.
I am curious as to how much of the difference in speed between SymPy and SymEngine you think is attributable to the lack of the optimal design of the Python code, and how much do you think is attributable to the choice of computer language. Clearly C++ is a much lower level language than Python, and would presumably be intrinsically much faster, but result in many hard to fix memory corruption bugs.
David
-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sympy/e2e17e06-6622-81e3-a5a3-980fe13c691f%40dbailey.co.uk.
