Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
more support for operation nodes with multiple args #739
If I create an operation node with list of 3 arguments
I propose that this print "2 + 3 + 4" instead. I think toTex() has the same issue
I propose that since Operator nodes take a list of arguments and not exactly two arguments, they should be able to support eval() for any number of arguments in the arg list
changed the title from
toString and toTex supporting operation nodes with multiple args
operation nodes with multiple args
Nov 6, 2016
Partially it's so that if people create valid nodes they should be able to use them like any other.
The reason I need it is for a CAS step by step simplifier built off of mathJS that Jos is planning to use as an extension to mathjs. I need to merge arguments to simplify easily, and am using my own functions to print and eval, but if the functionality was part of mathJS that'd be awesome
I think it's the same as two arguments
You can however add or multiply three things together. I could have been more clear that those are the two cases that I care about. They should keep parens around it if it would need it for two arguments, but won't need parens otherwise.
Does that sound right?
Agree. I think it's nice to extend
referenced this issue
Nov 13, 2016
added a commit
Nov 18, 2016
This will be very helpful. If I recall, I used nodes named