I want to know harmonic progression code

1 回表示 (過去 30 日間)
JI EUN CHOI
JI EUN CHOI 2017 年 5 月 27 日
回答済み: MathReallyWorks 2017 年 5 月 27 日
I want to know harmonic progression code. I have tried making a code, but It is failed. So, I will compare another correct code.

回答 (1 件)

MathReallyWorks
MathReallyWorks 2017 年 5 月 27 日
Hello,
If you have starting term(a) and common difference(d) then make a series till some definite number as:
a, a+d, a+2d, a+3d....
Keep then in a 1D array.
Now call each element and take inverse of that.
This will give you harmonic progression.

カテゴリ

Help Center および File Exchange모델링 についてさらに検索

Community Treasure Hunt

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

Start Hunting!