I want to know harmonic progression code
显示 更早的评论
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
2017-5-27
1 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 연산자와 기초 연산 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!