Rudxain / eso-math.ts

(WIP) Esoteric Mathematic Library for TypeScript
3 stars 0 forks source link

Fix `modpow` memory use #13

Closed Rudxain closed 2 years ago

Rudxain commented 2 years ago

The IntN version has potential for avoidable out of memory errors when e < 2, while the Math version doesn't preserve precision when the exponent isn't an integer (there's no "modular multiplicative inverse" to correct this)

Rudxain commented 2 years ago

32