How to make a function that calculate appoximate value of pi
이전 댓글 표시
Hi every one; I am going to make a function called a_pi that uses the following approximations of pi

but that function should have following specifications Instead of going to infinity, the function stops at the smallest k for which the approximation differs from pi (i.e., the value returned MATLAB’s built-‐in function) by no more than the positive scalar, delta, which is the only input argument. The first output of the function is the approximate value of π, while the second is k. (Note: if your program or the grader takes a long time, you may have created an infinite loop and need to hit Ctrl-‐C on your keyboard.) How to deal with that question.Thanks in advance for assistance..
댓글 수: 2
Muhammad Usman Saleem
2015년 5월 29일
James Tursa
2015년 5월 29일
Please post what you have done so far so we can comment on it and make suggestions.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!