# node-roots

> Equation root computer

Latest version **1.0.0** (published 2016-07-01) · 0 weekly downloads

## Install

```sh
npm install node-roots
pnpm add node-roots
yarn add node-roots
bun add node-roots
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-07-01 |
| First published | 2016-07-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Amir Keshavarz |
| Maintainers | satrobit |
| Keywords | Equation, root, computer |

## Links

- npm: https://www.npmjs.com/package/node-roots
- Repository: https://github.com/satrobit/node-roots
- Homepage: https://github.com/satrobit/node-roots#readme
- Issues: https://github.com/satrobit/node-roots/issues
- npm.io page: https://npm.io/package/node-roots

## Dependencies (3)

- [chai](https://npm.io/package/chai.md) ~1.8.1
- [mocha](https://npm.io/package/mocha.md) ~1.16.2
- [es6-promise](https://npm.io/package/es6-promise.md) ^3.0.2

## Recent versions

- 1.0.0 (latest) — 2016-07-01

## README

node-roots
=========

Equation root computer


## Installation

```shell
  npm install node-roots
```

## Usage

```js
  (function() {
    "use strict";



    function mod(x) {
        var res = Math.pow(x, 3) + x + 1;
        return res;
    }

    function mod2(t) {
        var res = Math.pow(t, 3) + 3 * Math.pow(t, 2) - 4 * t + 7;
        return res;
    }

    function mod3(x) {
        var res = 2 * Math.pow(x, 2) - x;
        return res;
    }

    function mod4(t) {
        var res = Math.pow(t, 2) - 9;
        return res;
    }

    function mod5(x) {
        var res = Math.pow(x, 7) + x + 1;
        return res;
    }




    /* Dependencies */
    var promise = require('es6-promise'),
        roots = require('./index');

    /* Instances */
    promise.polyfill();

    (function solve() {
        roots.computer(1, -100, 100, mod4)
            .then(function(res) {
                console.log(res);
            })
            /* Error! */
            .catch(function(err) {
                console.log(err);
            });
    })();
})();
```

## Tests

```shell
   npm test
```

## Release History

* 1.0.0 Initial release

---
_Source: https://npm.io/package/node-roots · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
