Skip to content

mikolalysenko/robust-product

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robust-product

Computes the product of two non-overlapping increasing sequences exactly.

Install

npm install robust-product

Example

var robustProduct = require("robust-product")

var a = [ Math.pow(2, -50), Math.pow(2, 50) ]

var b = robustProduct(a,a)

//Now:
//
//    b == [ Math.pow(2, -100), 2.0, Math.pow(2, 100) ]
//

API

require("robust-product")(a, b)

Multiplies a and b together exactly.

  • a, b are both non-overlapping increasing sequences

Returns A non-overlapping increasing sequence representing the product of a and b

Credits

(c) 2013 Mikola Lysenko. MIT License

About

Exactly multiplies two non-overlapping increasing sequences

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published