javascript-bignum
javascript-bignum copied to clipboard
Scheme arithmetic library for JavaScript
Return exact values from some functions, when possible. For expt, in particular, I check right away to see if the exponent is an integer (exact or inexact). If so, I...
I believe the following illustrates some undesirable behavior. ``` var sn = SchemeNumber; var a = sn('#i-1'); var p = sn('1'); var result = sn.fn['expt'](a, p); console.log(a + "^" +...
https://github.com/jtobey/javascript-bignum/blob/master/lib/leemonBigInt.js#L903 I've been trying to implement Pollard's Rho algorithm as part of a demonstration of ElGamal. While testing it, I determined that the GCD function sometimes doesn't return the expected...
Setting this value to allow exponentiation to be bigger is a nice feature. My suggestion is to let users assign `schemeNumber`s or `Infinity` to the value of `SchemeNumber.maxIntegerDigits` to have...
I'm trying to implement my own modpow function, and the SchemeNumber.maxIntegerDigits seems to be the limiting factor. Removing the check altogether for the expt function where the "first argument is...