Socket
Socket
Sign inDemoInstall

algebra.js

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    algebra.js

Build, display, and solve algebraic equations.


Version published
Weekly downloads
515
decreased by-10.75%
Maintainers
1
Install size
57.7 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 25 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc