Mpho
Followers: 0 Following: 0
Feeds
提问
I am trying to get the answer for the sum to infinity for a geometric series. My output should be 3/2 and a loop should be used. I've done that but it won't work. Please help
Sequence = [1 1/3 1/9 1/27]; FirstTerm = Sequence(1); CommonRatio = Sequence(2)/Sequence(1); n = 0; if (Sequence(2)/Sequence...
1 year 前 | 1 个回答 | 0
1
个回答提问
How do I create an arithmetic sequence using the counter function, but only using basic mathematics operations (in this case, addition)
Sq = [2 4 6 8] N = 3 if (Sq(2) - Sq(1)) == (Sq(end)-Sq(end-1)) d = Sq(2) - Sq(1) disp("The sequence is arithmetic"...
1 year 前 | 1 个回答 | 0