Multiply array representation of big numbers using BigInt where possible or Fürer's algorithm.
npm i big-mul --save
const bigMul = require('big-mul');
bigMul([1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9])
// returns
[ 1, 5, 2, 4, 1, 5, 7, 8, 7, 5, 0, 1, 9, 0, 5, 2, 1 ]
In old node.js
environments that not fully supports es2015
, big-mul
could be used with:
var bigSum = require('big-mul/legacy');
- big-sum - sum array representation of big numbers
- big-wrap - wrap array representation of big numbers
MIT