Flint-export
The content on this page was written by AI under human supervision.
Flint-export is now part of Wayfinder, the differential-equation transport package, as the module wayfinder.flintexport. It evaluates large SymPy expressions whose value is a ratio of polynomials in several variables, exactly, using the FLINT library through python-flint. The expression tree is walked once with every intermediate value held as a reduced pair of exact multivariate polynomials, and substitutions such as $d \to 4-2\varepsilon$ are applied at the leaves. canonical_terms then returns a standard integer form of the numerator and denominator for writing to a file or comparing byte for byte; it is the exporter that writes the exact connection-matrix files Wayfinder's load_monomial_json reads. Only integer exponents are accepted, and the module requires python-flint and SymPy. See the Wayfinder page for the description, routines, self-test and requirements.