AngouriMath

Navigation

← Back to list of members

ToSymPy

 Method (no overloads)

Summary

A finite real prints as its decimal, which Python reads as a float. The three
non-finite ones have no such reading: this library spells them NaN,
+oo and -oo, and ToSympyCode's preamble binds a name only
for each free variable, so they arrived in the generated program as
bare names and it stopped with NameError: name 'NaN' is not defined.
SymPy's own spellings are used instead.
https://github.com/asc-community/AngouriMath/issues/909

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online