تم الحل ✓
categoryبرمجة وتطوير البرمجيات
schoolبكالوريوس
event_available2026-07-13
السؤال
Transcribed Image Text:
There are many formulae for computing л (the ratio of a circle's circum-
ference to its diameter). The simplest is
Π
=
11/31/5 1/7 + 1/9 — . . .
which comes from putting x = 1 in the series
3
X
x
arctan xx
-
3
5
-
X
9
7
9
(8.4)
(8.5)
(a) Write a program to compute л using Equation (8.4). Use as many
terms in the series as your computer will reasonably allow (start
modestly, with 100 terms, say, and re-run your program with more
and more each time). You should find that the series converges very
slowly, i.e. it takes a lot of terms to get fairly close to л.
(b) Rearranging the series speeds up the convergence:
Π
1
8 1 x 3
1
5 x 7
1
9 × 11
Write a program to compute л using this series instead. You should
find that you need fewer terms to reach the same level of accuracy
that you got in (a).
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.