Skip to content

Commit

Permalink
Fix initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
wellington36 authored Feb 24, 2023
1 parent 95450d5 commit f90c6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ from acceleration import Aitken_tranform

# a zeta(2) series
def square_series(n: int) -> list:
series = [0]
series = [1.0]

for i in range(1, n):
for i in range(2, n+1):
series.append(series[-1] + 1/(i)**2)

return series
Expand Down

0 comments on commit f90c6b1

Please sign in to comment.