In retrospect it was a bad call to build an ad hoc AST out of sympy symbolic expressions. Sympy's code generation infrastructure would be available if ltitop used sympy.codegen.ast data structures instead.
The ltitop.algorithms module is using sympy code generation functionality to some extent already (e.g. sympy.utilities.lambdify). Finish the job.
In retrospect it was a bad call to build an ad hoc AST out of
sympy
symbolic expressions. Sympy's code generation infrastructure would be available ifltitop
usedsympy.codegen.ast
data structures instead.The
ltitop.algorithms
module is usingsympy
code generation functionality to some extent already (e.g.sympy.utilities.lambdify
). Finish the job.