mathy

v0.3.0
A simple formula evaluator and rules parser
math parser cli

Mathy.js

Build Status

Mathy.js is a simple arithmetic calculation engine for node.js and the browser.

It allows you to easily produce parameterized formulas and then get out the results based on what is passed in. It can also be used to execute a string as a formula.

Usage

var mathy = require('mathy');

var engine = new mathy.Engine({
    name: 'a',
    derivation: '1 + 2'
});

var result = engine.process();

expect(result[0]).toEqual(3);

License

MIT

Author

Aaron Powell

npm i mathy

Metadata

  • MIT
  • Whatever
  • Aaron Powell
  • released 8/14/2013

Downloads

Maintainers