hi I want to solve this problem using posted script.
1 ビュー (過去 30 日間)
表示 古いコメント
Problem: Another formula for computing "pi" can be deduced from the identity pi/4 = 4arctan1/5— arctan1/239. Determine the number of terms that must be summed to ensure an approximation to pi to within 1e-3.

Can some one tell me how to use a script to solve the problem.
6 件のコメント
採用された回答
Walter Roberson
2021 年 9 月 2 日
That script cannot be used to solve that problem. That script is for the case where a continuous variable x must be found such that f(x) is close to 0.
However, the current problem instead requires that you find the discrete variable n such that
4 * (approximating arctan 1/5 by n terms) - (approximating arctan 1/239 by n terms)
is within 1e-3 of pi/4
It is a completely different kind of problem.
8 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Find more on Spline Postprocessing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!