A parser of math formulas to allow text entry on Isaac Physics' symbolic editor
This is no more than a demo application. This code will eventually make its way into Isaac Physics.
npm install
npm run serveSome of the expressions that this can parse right now are
x + yx/yx/yz -> (x/y)*zx/-yz -> (x/(-y))*zt_0alpha_t0sin(x)sin(x)^2log(x, 10)ln(x)log(x, e)e^(i*omega + phi)e^ish -> (e^i)*s*he^-ish -> (e^(-i))*s*hDelta x -> ∆*xDeltax -> ∆x, not∆*xdelta x -> δ*xdeltax -> δx, notδ*xd t -> d*tdt -> dt(differential)dabc -> d*a*b*cdiff(x^2, x)diff(x^3 * y^2, x, x, y)diff(x^3 * y^2, x, 2, y)(equivalent to the one above)
Differentials only differentiate one letter -- no brackets supported (yet?)
Other features:
- Greek letters to be converted to their Unicode counterparts
- radicals
- (in)equalities
- derivatives
- absolute values
- differentials, maybe?
For now, enjoy 🙂