Constructing scientific programs using SymPy
Mark Dewing
We describe a method for constructing scientific programs where SymPy is
used to model the mathematical steps in the derivation. With this workflow,
each step in the process can be checked by machine, from the derivation of
the equations to the generation of the source code. We present an example
based on computing the partition function integrals in statistical mechanics.
SymPy, code generation, metaprogramming
DOI10.25080/Majora-ebaa42b7-006