please is there any inbuilt function for harmonic function?

1 view (last 30 days)
Deleena Rebello
Deleena Rebello on 25 Jan 2022
Answered: Rik on 25 Jan 2022
Please write a script of function for harmonic function summation of 1/n for n=1 to infinity

Answers (1)

Rik on 25 Jan 2022
There actually is a builtin that will give you the answer:
As for implementing the function yourself, that is probably homework, so I'll leave it to you try something. Feel free to post a comment with your efforts and what questions you have.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by