math-parser

0.12.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i math-parser

Weekly Downloads

14

Version

0.12.1

License

MIT

Last publish

Collaborators

  • kevinbarabash