Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@vvelediaz/algebra.js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vvelediaz/algebra.js

Build, display, and solve algebraic equations.

latest
Source
npmnpm
Version
0.2.9
Version published
Maintainers
1
Created
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

algebra

FAQs

Package last updated on 05 Mar 2024

Did you know?

Socket

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