The Wayback Machine - https://web.archive.org/web/20210115030649/https://github.com/Morpheu5/MathParser
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

README.md

MathParser

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 serve

Some of the expressions that this can parse right now are

  • x + y
  • x/y
  • x/yz -> (x/y)*z
  • x/-yz -> (x/(-y))*z
  • t_0
  • alpha_t0
  • sin(x)
  • sin(x)^2
  • log(x, 10)
  • ln(x)
  • log(x, e)
  • e^(i*omega + phi)
  • e^ish -> (e^i)*s*h
  • e^-ish -> (e^(-i))*s*h
  • Delta x -> ∆*x
  • Deltax -> ∆x, not ∆*x
  • delta x -> δ*x
  • deltax -> δx, not δ*x
  • d t -> d*t
  • dt -> dt (differential)
  • dabc -> d*a*b*c
  • diff(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 🙂

You can’t perform that action at this time.