diff --git a/base/special/binomcoef/lib/main.js b/base/special/binomcoef/lib/main.js index bb02941bc..22f6c7bf7 100644 --- a/base/special/binomcoef/lib/main.js +++ b/base/special/binomcoef/lib/main.js @@ -133,10 +133,11 @@ function binomcoef( n, k ) { * we can leverage recursion to perform argument reduction. */ b = binomcoef( n, k-d+1 ); - c = binomcoef( k, k-d+1 ); if ( b === PINF ) { return sgn * b; } + c = binomcoef( k, k-d+1 ); + /* * At this point, the result should be `res*b/c`. *