Sum of Harmonic Series of natural numbers

Matlab code for the sum of Harmonic Series (1+1/2+1/3+....+1/n, n is a natural number)
79 Downloads
Updated 15 Jan 2022

View License

For details watch the lecture: https://youtu.be/A6hq2Wd87kA
Sum of the Harmonic Series.
Find sum of 1+1/2+1/3+....+1/n, n is a natural number.
Example:
Enter the number of terms: 5
The sum is 2.283 >>

Cite As

Dr. Manotosh Mandal (2026). Sum of Harmonic Series of natural numbers (https://www.mathworks.com/matlabcentral/fileexchange/72542-sum-of-harmonic-series-of-natural-numbers), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Time Series in Help Center and MATLAB Answers
Acknowledgements

Inspired: Alternating harmonic series

Version Published Release Notes
1.0.14

With its video lecture

1.0.13

Video lecture

1.0.12

example

1.0.1

The sum of Harmonic Series with example.

1.0.0