Skip to content

Created sum_of_harmonic_series.py #7504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Oct 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update maths/sum_of_harmonic_series.py
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
AkshitGulyan and cclauss authored Oct 22, 2022
commit ae928a5fc878bb97f4c680db61d0b43f64cda3ce
2 changes: 1 addition & 1 deletion maths/sum_of_harmonic_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def sum_of_harmonic_progression(
"""

i += 1
l2 = [1 / x for x in l1]
harmonic_series = [1 / step for step in arithmetic_progression]
return sum(l2)


Expand Down