nicolewhite/algebra.js

Parser exponent precedence

Closed this issue · 0 comments

Writing

expr = algebra.parse('a*x^2')

I expected a*x*x, but I got a*a*x*x. Somehow * is more binding than ^ .