AngouriMath
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 themNaN ,
+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 withNameError: name 'NaN' is not defined .
SymPy's own spellings are used instead.
https://github.com/asc-community/AngouriMath/issues/909
non-finite ones have no such reading: this library spells them
for each free variable, so they arrived in the generated program as
bare names and it stopped with
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