Skip to content

Commit

Permalink
Remove some commented console logs (see #709)
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Sep 12, 2016
1 parent b5afebd commit c2d39cc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/function/arithmetic/xgcd.js
Expand Up @@ -106,13 +106,9 @@ function factory (type, config, load, typed) {
throw new Error('Parameters in function xgcd must be integer numbers');
}

//console.log('start', [a, b].toString())

while (!b.isZero()) {
//console.log('inner', [a, b, t, q, r, x, y, lastx, lasty].toString());
q = a.div(b).floor();
r = a.mod(b);
//console.log('MOD', [a, b, a.mod(b), r].toString())

t = x;
x = lastx.minus(q.times(x));
Expand All @@ -124,12 +120,8 @@ function factory (type, config, load, typed) {

a = b;
b = r;

//console.log('inner end', [a, b, t, q, r, x, y, lastx, lasty].toString());
}

//console.log('end', [a, lastx, lasty].toString())

var res;
if (a.lt(zero)) {
res = [a.neg(), lastx.neg(), lasty.neg()];
Expand Down

0 comments on commit c2d39cc

Please sign in to comment.