From 67a9dd07d686ce8e792cd52cbc776d534c5e0107 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 11 Apr 2024 08:33:24 +0000 Subject: [PATCH] Auto-generated commit --- base/special/binomcoef/lib/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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`. *