hi I want to solve this problem using posted script.

1 ビュー (過去 30 日間)
Matthew Worker
Matthew Worker 2021 年 9 月 2 日
コメント済み: Walter Roberson 2021 年 9 月 3 日
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
Walter Roberson 2021 年 9 月 3 日
I discussed the script as the very first thing in my Answer.

サインインしてコメントする。

採用された回答

Walter Roberson
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 件のコメント
N/A
N/A 2021 年 9 月 2 日
Thank you so much for your kind help. I really appreciate it.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by