Replies: 3 comments 9 replies
-
Function parameters in Mathics3 and WMA are surrounded in square brackets and lists are surrounded by braces Whenever you get an InvalidSyntaxError, paste the string inside a mathics or mathicsscript session and it will tell you why it thinks the syntax is incorrect. |
Beta Was this translation helpful? Give feedback.
-
Ok i understand, but is there a function which convert sympy expression such as : |
Beta Was this translation helpful? Give feedback.
-
There are some fundamental concepts going on that are getting glossed over. The In order to go from a native sympy or an internal Mathics3 object to a naturally formatted Mathics3 language string, Form processing is done; this involves calling format methods. Some of this is described in the developer guide: https://mathics-development-guide.readthedocs.io/en/latest/extending/code-overview.html so please see that for more information. |
Beta Was this translation helpful? Give feedback.
-
Hi, i want to make a python code able to evaluate expressions from sympy (typically with derivatives). However it doesn't work, i guess Mathics is not able to parse "Derivative"
Here's my code :
Here's the output :
Maybe there is a way to convert expressions to be parsable or something like that ?
Beta Was this translation helpful? Give feedback.
All reactions