フィルターのクリア

Power series for arctan

1 回表示 (過去 30 日間)
Benjamin Trivers
Benjamin Trivers 2020 年 1 月 31 日
コメント済み: David Hill 2020 年 1 月 31 日
Write a script that does the following: Approximate π using the formula from trigonometry (π = 4arctan1) and arctan values using the first 10 terms in the power series letting x=1. Then calculate the absolute error of your approximation using the above formula (hint: the error from k arctan x is k times the error from arctan x). Use fprintf to nicely display your results.
Please help, I have no idea how to start?
  2 件のコメント
Geoff Hayes
Geoff Hayes 2020 年 1 月 31 日
Benajamin - presumably this question is from a class that you are taking. Are you learning about power series? What is the power series for arctan?
David Hill
David Hill 2020 年 1 月 31 日
First calculate arctan1 using the first 10 terms of series.
Atan=0;
for k=1:10
Atan=Atan+(-1)^(k-1)/(2*k-1);
end
Then calculate the absolute error.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by