computational-combinatorics/factorial

View on GitHub
src/lookup.js

Summary

Maintainability
A
0 mins
Test Coverage
const lookup = Float64Array.from([
    1, 1, 2, 6, 24, 120, 720, 5040, 40_320, 362_880, 3_628_800, 39_916_800,
    479_001_600, 6_227_020_800, 87_178_291_200, 1_307_674_368_000,
    20_922_789_888_000, 355_687_428_096_000, 6_402_373_705_728_000,
    121_645_100_408_832_000, 2_432_902_008_176_640_000,
    51_090_942_171_709_440_000, 1_124_000_727_777_607_680_000,
]);

export default lookup;