JSPM

robust-product

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30757
  • Score
    100M100P100Q142002F
  • License MIT

Exactly multiplies two non-overlapping increasing sequences

Package Exports

  • robust-product

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (robust-product) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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