統計
MATLAB Answers
2 質問
0 回答
ランク
of 171,319
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
質問
How do I change the sign without altering the other and how can I do the factorial denominator? 1-1/3!+1/5!-1/7!+... and perform the sum?
disp('serie 4: 1-1/3!+1/5!-1/7!+...' ) n=input('Enter a number: '); sum=0; for j=1:2:n sum = sum + 1/j; end disp('the ...
3年以上 前 | 1 件の回答 | 0
1
回答質問
How can I change the numbers to negative without altering the positive ones and make a sum of that? This is the serie 1-2+3-5+8-13+21-34+...
n=8; F=[1 2]; suma=0; for i=3:n F(i)=F(i-1) + F(i-2); end disp(F) this is only for show the positive serie
3年以上 前 | 1 件の回答 | 0
