Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Any Help with this question

조회 수: 1 (최근 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