# kld-polynomial

> A class of simple polynomial functionality including root finding

Latest version **0.3.0** (published 2019-05-09) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install kld-polynomial
pnpm add kld-polynomial
yarn add kld-polynomial
bun add kld-polynomial
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2019-05-09 |
| First published | 2013-08-01 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >= 10.15.3 |
| Dependencies | 0 |
| Unpacked size | 255.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29 |
| Author | Kevin Lindsey |
| Maintainers | thelonious |
| Keywords | polynomial, roots, derivative |

## Links

- npm: https://www.npmjs.com/package/kld-polynomial
- Repository: https://github.com/thelonious/kld-polynomial
- Issues: https://github.com/thelonious/kld-polynomial/issues
- npm.io page: https://npm.io/package/kld-polynomial

## Recent versions

- 0.3.0 (latest) — 2019-05-09
- 0.2.0 — 2019-05-07
- 0.1.3 — 2017-11-29
- 0.1.2 — 2017-07-21
- 0.1.1 — 2017-01-12
- 0.1.0 — 2015-01-11
- 0.0.3 — 2013-11-19
- 0.0.2 — 2013-08-01
- 0.0.1 — 2013-08-01

## README

# kld-polynomial

- [Installation](#installation)
- [Importing](#importing)
- [API](#api)
- [Links and Related Projects](#links-and-related-projects)

---

A class of simple polynomial functionality including root finding

# Installation

```
npm install kld-polynomial
```

# Importing

The following sections indicate how you can import the code for use in various environments.

## Node

```javascript
import {Polynomial} = require("kld-polynomial");
```

## ESM in Modern Browsers

```javascript
import {Polynomial} from './node_modules/kld-polynomial/dist/index-esm.js';
```

## Older Browsers

```html
<script src="./node_modules/kld-polynomial/dist/index-umd.js"></script>
<script>
  var Polynomial = KldPolynomial.Polynomial;
</script>
```

## Bundlers

```javascript
import {Polynomial} from "kld-polynomial";
```

# API

## Polynomial

- Polynomial.interpolate
- eval
- add
- multiply
- divide_scalar
- simplifyEquals
- bisection
- toString
- trapezoid
- simpson
- romberg
- getDegree
- getDerivative
- getRoots
- getRootsInInterval
- getLinearRoot
- getQuadraticRoots
- getCubicRoots
- getQuarticRoots

# Links and Related Projects

- [kld-intersections](https://github.com/thelonious/kld-intersections)
- [kld-contours](https://github.com/thelonious/kld-contours)

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