Implicit product syntax and tracking variable assignments
Publié : mer. août 05, 2020 4:16 pm
For a CAS calculator project based on Giac (Symbolibre), we are building GUIs that use Giac as a backend and exploring the various ways we can input and output data with the library. We'd like some insight into Giac's behavior for two aspects in particular:
Lephe'
- Is the implicit product syntax supported? Things like (x+1)(y+1), where disambiguation with function calls supposedly based on the type of the left operand. We considered various ways of inserting products manually but they would all need help from Giac's parser to work properly.
- Is there a way to hook to variable assignments? We'd like to know at various times what variables are defined in a context and when their values change, but scanning the whole tabptr each time is not very performance-friendly. We figured we could do that in the sto() function, but the context's tabptr seems to be accessed directly in many places. Is there a safe way to track changes here?
Lephe'