Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Any Help with this question

2 ビュー (過去 30 日間)
yuksekkayae
yuksekkayae 2015 年 4 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
  2 件のコメント
Michael Haderlein
Michael Haderlein 2015 年 4 月 17 日
It's your homework, so better you do it. If you have questions on a specific step, let us know. But then, also let us know what you've done so far and what exactly is the problem.
yuksekkayae
yuksekkayae 2015 年 4 月 17 日
編集済み: yuksekkayae 2015 年 4 月 17 日

回答 (1 件)

Michael Haderlein
Michael Haderlein 2015 年 4 月 17 日
It would be so much easier if you wouldn't post a screenshot but just the code as text. Then, somebody else could copy and possibly fix it.
I guess the error is that you multiply with t instead of divide by t in the equation where you actually calculate the approximation of pi.
Btw, you use the Matlab function pi as perfect value. I'm sure this value won't be too bad but usually in such iterative approximations, the error is defined as difference between two iterations (please correct me if I'm wrong).

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

Community Treasure Hunt

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

Start Hunting!

Translated by