You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like many users believe the parser is magically aware of the context.
For example, they want x(2y+1) to be a multiplication but f(2y+1) to be an evaluation aka function f evaluted at 2y+1.
Since the parser had no easy way to guess these contexts, it was specified that a letter followed by an opening parenthesis was always interpreted as an evaluation aka "function of". If the user wants a multiplication instead, he needs to add the multiplication symbol * explicitly such as x*(2y+1) or simply change the order (2y+1)x.
An idea of improvement for the future that would allow the parser to have a better context understanding while allowing mathematical correctness would be to have the user declaring his functions before encoding the answer.
For example, if f is declared as a function, the parser would differentiate variables x and functions f and thus also dissociate multiplications and evaluations easily.
This might require a relatively big change to the plugin (modifications to the parser and a clean and easy way for the user to declare his functions in the web interface) but would probably increase usability and math correctness.
If some people are willing to work on this pluggin, I suggest this feature to be implemented.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Future feature proposition:
It looks like many users believe the parser is magically aware of the context.
For example, they want x(2y+1) to be a multiplication but f(2y+1) to be an evaluation aka function f evaluted at 2y+1.
Since the parser had no easy way to guess these contexts, it was specified that a letter followed by an opening parenthesis was always interpreted as an evaluation aka "function of". If the user wants a multiplication instead, he needs to add the multiplication symbol * explicitly such as x*(2y+1) or simply change the order (2y+1)x.
An idea of improvement for the future that would allow the parser to have a better context understanding while allowing mathematical correctness would be to have the user declaring his functions before encoding the answer.
For example, if f is declared as a function, the parser would differentiate variables x and functions f and thus also dissociate multiplications and evaluations easily.
This might require a relatively big change to the plugin (modifications to the parser and a clean and easy way for the user to declare his functions in the web interface) but would probably increase usability and math correctness.
If some people are willing to work on this pluggin, I suggest this feature to be implemented.
This, of course, is just a suggestion.
Beta Was this translation helpful? Give feedback.
All reactions