New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FunctionAssignmentNodes are irreversibly stringified #765

oskardahlberg opened this Issue Dec 17, 2016 · 1 comment


None yet
2 participants

oskardahlberg commented Dec 17, 2016

When using toString on a FunctionAssignmentNode, for example 'y(x) = 3x', it outputs 'function y(x) = 3x'.
That, however, cannot be parsed back to a FunctionAssigmentNode like math.parse(math.parse('y(x) = 3x').toString())

@josdejong josdejong added the bug label Dec 18, 2016


This comment has been minimized.


josdejong commented Dec 18, 2016

Thanks for reporting, I think this is a left-over of a very early version of math.js where this was the actual syntax for defining a function, this should have been changed together with the change of the syntax itself. .toTex() already works correctly, it's just .toString().

@josdejong josdejong closed this in 79993ce Jan 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment