Exact subtraction of nonoverlapping sequences
MIT License
Exactly computes the difference of two non-increasing overlapping sequences. See robust-sum for more details.
var robustDiff = require("robust-subtract")
console.log(robustDiff([1], [1e-64]))
npm install robust-subtract
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 numberb
is the second numberReturns The difference of a
and b
(c) 2014 Mikola Lysenko. MIT License