Closed kevinbarabash closed 7 years ago
We handle #a_0 * ... but don't handle #a * #b_0 * ...
#a_0 * ...
#a * #b_0 * ...
We'll need to this handle matching patterns like: 5 * x^2 * y using match like so:
5 * x^2 * y
match
matchNode( parse('#a * #b_0 * ...'), '5 * x^2 * y', { a: isCoefficient, // isNumber is probably sufficient b: isPolynomialVariable, // match 'x', 'y^2' } )
We handle
#a_0 * ...
but don't handle#a * #b_0 * ...
We'll need to this handle matching patterns like:
5 * x^2 * y
usingmatch
like so: