Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/robust-subtract
Exact subtraction of nonoverlapping sequences
https://github.com/mikolalysenko/robust-subtract
Last synced: about 2 months ago
JSON representation
Exact subtraction of nonoverlapping sequences
- Host: GitHub
- URL: https://github.com/mikolalysenko/robust-subtract
- Owner: mikolalysenko
- License: mit
- Created: 2013-10-25T18:31:29.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-28T22:24:34.000Z (over 10 years ago)
- Last Synced: 2024-04-20T13:34:47.779Z (8 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
robust-subtract
===============
Exactly computes the difference of two non-increasing overlapping sequences. See [robust-sum for more details](https://github.com/mikolalysenko/robust-sum).# Example
```javascript
var robustDiff = require("robust-subtract")console.log(robustDiff([1], [1e-64]))
```# Install
```
npm install robust-subtract
```# API
### `require("robust-subtract")(a,b)`
Returns the difference of the sequences `a` and `b` encoded as a non-overlapping increasing sequence.* `a` is the first number
* `b` is the second number**Returns** The difference of `a` and `b`
## Credits
(c) 2014 Mikola Lysenko. MIT License