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
I am running into the issue that when interpret the expression "2^-1^2^3", the returned expression tree takes precedence as ((2^(-1))^2)^3. But the expectation is 2^(-((1^2)^3)). I realize that in this case the unary operator "-" takes higher precedence than "^".
Is there any way that I can assign "-" with precedence lower than "^"?
I have tried to call jsep.addUnaryOp('-'); but it doesn't seem to change the default precedence.
The text was updated successfully, but these errors were encountered:
Hi,
I am running into the issue that when interpret the expression "2^-1^2^3", the returned expression tree takes precedence as ((2^(-1))^2)^3. But the expectation is 2^(-((1^2)^3)). I realize that in this case the unary operator "-" takes higher precedence than "^".
Is there any way that I can assign "-" with precedence lower than "^"?
I have tried to call jsep.addUnaryOp('-'); but it doesn't seem to change the default precedence.
The text was updated successfully, but these errors were encountered: