Skip to content

semantic-math/math-parser

Repository files navigation

math-parser

Build Status

Parse math strings to an AST suitable for symbolic manipulation.

Features

  • flattened add/sub operations
  • flattened mul/div operations
  • equations and inequalities
  • absolute value, e.g. ||x - y| - |y - z||
  • functions, e.g. f(x, y, g(u, v))
  • multi-char identifiers, e.g. atan2(dy, dx)
  • implicit multiplication, e.g. (x)(y), 2x, a b

Demo

demo

Getting Started

  • yarn install
  • npm run build
  • node demo.js

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •