フィルターのクリア

infinite series with loop in MATLAB

9 ビュー (過去 30 日間)
hasan s
hasan s 2021 年 1 月 21 日
コメント済み: hasan s 2021 年 1 月 22 日
how can find F in matlab , where the initial value of z =1
and i is loop from
i=1:10
thanks so much for any help.need code of program if possible
  2 件のコメント
David Hill
David Hill 2021 年 1 月 22 日
It is unclear what z array is (from i=1:10) and how i changes in the equation. Should there be another summation on the outside changing i from 1:10?
hasan s
hasan s 2021 年 1 月 22 日
編集済み: hasan s 2021 年 1 月 22 日
thank you for your reply
yes .to chang z
there must summation for i=1:10 ,with initial value to z=1
and another summation k=1:infinity .....for series

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2021 年 1 月 22 日
syms z I k real
F = symsum((-z*I)^k/(k*factorial(k)), k, 1, inf)
F = 
However, examine the behavior when k = 0, the lower bound from the equation. The denominator is k*k! which would be 0 * 0! which would be 0*1 which would be 0. So we have a potential problem with singularities, and need to look at the limit. For non-zero z and i, (-z*i)^0 would be 1. Thus we are looking at 1/0 and that is infinite. As that is a term that is included in the actual sum (k = 0 to infinity) we must conclude that F is infinite except for the case where z or i are 0.
  12 件のコメント
Walter Roberson
Walter Roberson 2021 年 1 月 22 日
編集済み: Walter Roberson 2021 年 1 月 22 日
format long g
z = [1, rand(1,9)];
syms k real
F = sym(0);
for i = 1 : 10
F = F + symsum((-z(i))^k/(k*factorial(k)), k, 1, inf);
end
F
F = 
result = double(F)
result =
-4.34857820351754
hasan s
hasan s 2021 年 1 月 22 日
Thank you very much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumber Theory についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by