jqr-poly

1.1.0 • Public • Published

jqr-poly

Build Status

Polynomial arithmetics in node

Install

npm install jqr-poly

Usage

See the full docs here

Create a Polynomial

const jqrPoly = require('jqr-poly');
// 2x^2 + 1
let coefficients = [2, 0, 1];
let poly = jqrPoly.create(coefficients);

Add two Polynomials

const jqrPoly = require('jqr-poly');
// Create p1 & p2
let p1 = jqrPoly.create([1, 0]);
let p2 = jqrPoly.create([1, 0]);
// Add p1 + p2
p1.add(p2)

/jqr-poly/

    Package Sidebar

    Install

    npm i jqr-poly

    Weekly Downloads

    2

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • iagolast