From 806b3864c36e24459cb4685b400e74c5685f5674 Mon Sep 17 00:00:00 2001 From: Elisha Hollander Date: Sun, 4 Apr 2021 07:02:36 +0300 Subject: [PATCH] refactor: Remove default value of exponential_term (#4308) exponential_term doesn't need a default value --- maths/bailey_borwein_plouffe.py | 1 - 1 file changed, 1 deletion(-) diff --git a/maths/bailey_borwein_plouffe.py b/maths/bailey_borwein_plouffe.py index febf7e975..b647ae56d 100644 --- a/maths/bailey_borwein_plouffe.py +++ b/maths/bailey_borwein_plouffe.py @@ -70,7 +70,6 @@ def _subsum( sum = 0.0 for sum_index in range(digit_pos_to_extract + precision): denominator = 8 * sum_index + denominator_addend - exponential_term = 0.0 if sum_index < digit_pos_to_extract: # if the exponential term is an integer and we mod it by the denominator # before dividing, only the integer part of the sum will change;