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
It would seem that in this case, JSEP mimics the behavior of Excel and Matlab. See Order of operations, special cases. It also happens if you input 2^3^2, which should parse as 2^(3^2) given typical mathematical right-associativity of exponentiation, but instead it parses as (2^3)^2.
Please add feature to adjust unary operator precedence so it will be possible to make following example works properly.
-x^2 and (-x)^2
gives
I would like to add something like this:
jsep.addUnaryOp("-", 0);
So output of jsep() would be
It would be only optional feature so IMO it will only improve library.
The text was updated successfully, but these errors were encountered: