Skip to content
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

Closed
oskardahlberg opened this issue Dec 17, 2016 · 1 comment
Closed

FunctionAssignmentNodes are irreversibly stringified #765

oskardahlberg opened this issue Dec 17, 2016 · 1 comment
Labels

Comments

@oskardahlberg
Copy link

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
@josdejong
Copy link
Owner

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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants