An error occurred while fetching the assigned milestone of the selected merge_request.
Add own implementation for printing an unknown function
Using the SymPy implementation for printing a sympy.Function
has some issues:
- you cannot use
cast_func
as an argument -> SymPy prints `cast_func(2,float) - typed numbers are not typed any more -> e.g. pow(x, 0.25) instead of pow(x, 0.25f)
Maybe a disadvantage or an advantage:
- arbitrary Functions: sympy.Function('my_function') are now allowed.
Would have prevented commits like:
Fix: type of sqrt(int) was int not floating point type
Edited by Stephan Seitz
Merge request reports
Activity
Filter activity
added 17 commits
-
ff99cee9...c4e92d45 - 15 commits from branch
pycodegen:master
- a1c374cc - Add own implementation for printing an unknown function
- 5e7d3c9c - Update tests for new function-call-printing
-
ff99cee9...c4e92d45 - 15 commits from branch
mentioned in commit 2f4313fd
mentioned in merge request !100 (closed)
Please register or sign in to reply