# math-intervals

> Operations with intervals of real numbers, including intersections, joins, disjoint sets etc

Latest version **1.0.1** (published 2017-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install math-intervals
pnpm add math-intervals
yarn add math-intervals
bun add math-intervals
```

## 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.1 |
| Published | 2017-03-21 |
| First published | 2017-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alexander Dvorkovyy |
| Maintainers | advorkovyy |
| Keywords | mathematics, interval, math |

## Links

- npm: https://www.npmjs.com/package/math-intervals
- Repository: https://github.com/pifactory/math-intervals
- Homepage: https://github.com/pifactory/math-intervals#readme
- Issues: https://github.com/pifactory/math-intervals/issues
- npm.io page: https://npm.io/package/math-intervals

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-03-21
- 1.0.0 — 2017-03-20

## README

[![MIT License][license-image]][license-url]

TypeScript/JavaScript library for working with intervals of real numbers, including intersections, joins, disjoint sets etc

## Install

```sh
$ npm install --save math-intervals
```

## Usage

```js
import intervals from 'math-intervals';

// [2, 10)
const interval1 = intervals.leftClosedRightOpen(2, 10)

// [10, 20)
const interval2 = intervals.leftClosedRightOpen(10, 20)

console.log(intervals.intersect(interval1, interval2)) // false
console.log(intervals.continuous(interval1, interval2)) // true

const partitionedInterval = intervals.partitioned(interval1, interval2)
console.log(intervals.intersect(partitionedInterval, interval1)) // true
console.log(intervals.intersect(partitionedInterval, interval2)) // true
console.log(intervals.intersect(partitionedInterval, partitionedInterval)) // true
```
## Constructors

TODO

## Functions

TODO

## License

math-intervals is freely distributable under the terms of the [MIT license](https://github.com/pi-factory/math-intervals/blob/master/LICENSE).

[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE

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