Geometric Series HELP!!!

a/(1-r)=a+ar+ar^2.......ar^6 0<r<1
Write a MATLAB program which calculates the exact value for the geometric series for each of the following values:
i) a=1 r=1/7 ii) a=3 r=1/3 iii) a=2 r=1/9
Calculate the exact values for each and show each result in (format short e, long e, long, short, long g, and short g). Then set the display format to long, and recalculate the exact values of the function and their geometric series approximation.
Is there anyone who can help me create a script the solves the above please?! Thanks always

1 件のコメント

KSSV
KSSV 2018 年 10 月 9 日
Home work...what have you attempted? Read bout ^ and linspace.

回答 (0 件)

この質問は閉じられています。

製品

リリース

R2018a

質問済み:

2018 年 10 月 9 日

閉鎖済み:

2018 年 10 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by