nicolewhite / algebra.js

Build, display, and solve algebraic equations.
http://algebra.js.org
MIT License
1.34k stars 111 forks source link

Update for ES6? #87

Open sjorsvanheuveln opened 6 years ago

sjorsvanheuveln commented 6 years ago

Hi Nicole,

Awesome library. Maybe update the readme for ES6? E.g.:

import { Expression, Equation } from 'algebra.js';

const z = new Expression('♥');
const eq = new Equation(z.subtract(4), 8);
const answer = eq.solveFor('♥');