Conference site ยป Proceedings

Constructing scientific programs using SymPy

Mark Dewing
Intel

Abstract

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.

Keywords

SymPy, code generation, metaprogramming

DOI

10.25080/Majora-ebaa42b7-006

Bibtex entry

Full text PDF