@nohns/algebra.js
TypeScript icon, indicating that this package has built-in type declarations

0.2.9 • Public • Published

algebra.js

Build Status Coverage Status npm version Join the chat at https://gitter.im/nicolewhite/algebra.js

Quick Start

var expr = new Expression("x");
expr = expr.subtract(3);
expr = expr.add("x");

console.log(expr.toString());
2x - 3
var eq = new Equation(expr, 4);

console.log(eq.toString());
2x - 3 = 4
var x = eq.solveFor("x");

console.log("x = " + x.toString());
x = 7/2

Read the full documentation at the project site.

Install

Stable Release

In Node

npm install algebra.js

In the Browser

Download algebra.min.js.

Latest Development Release

git clone https://github.com/nicolewhite/algebra.js.git
cd algebra.js

In Node

var algebra = require("./algebra");

In the Browser

The following will build algebra.js in the build directory.

make bundle

The following will build algebra.min.js in the build directory.

make minify

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i @nohns/algebra.js

    Weekly Downloads

    3

    Version

    0.2.9

    License

    MIT

    Unpacked Size

    62.9 kB

    Total Files

    12

    Last publish

    Collaborators

    • nohns