Skip to content

Commit 806b386

Browse files
authored
refactor: Remove default value of exponential_term (TheAlgorithms#4308)
exponential_term doesn't need a default value
1 parent 0992498 commit 806b386

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

maths/bailey_borwein_plouffe.py

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ def _subsum(
7070
sum = 0.0
7171
for sum_index in range(digit_pos_to_extract + precision):
7272
denominator = 8 * sum_index + denominator_addend
73-
exponential_term = 0.0
7473
if sum_index < digit_pos_to_extract:
7574
# if the exponential term is an integer and we mod it by the denominator
7675
# before dividing, only the integer part of the sum will change;

0 commit comments

Comments
 (0)