Problem 5. Each of the following sequences converges to π: an = 6 √3 n k=0 n bn = (-1)k 3k (2k + 1)' (-1)k 1652k+1 (2k+1) k=0 n - 4 Σ k=0 (−1)k 2392k+1 (2k+1) (a) Write a MATLAB script that computes ao, ..., ana, where na is the smallest integer such that ana T| < 10-6. Use fprintf to display your results in three columns, where the first column is the values of n, the second column the value of an, and the third column - the value of ana — π|. (b) Repeat part (a) for bo,.. ... , bn, where nɩ is the smallest integer such that |b - π| < 10−6.
Problem 5. Each of the following sequences converges to π: an = 6 √3 n k=0 n bn = (-1)k 3k (2k + 1)' (-1)k 1652k+1 (2k+1) k=0 n - 4 Σ k=0 (−1)k 2392k+1 (2k+1) (a) Write a MATLAB script that computes ao, ..., ana, where na is the smallest integer such that ana T| < 10-6. Use fprintf to display your results in three columns, where the first column is the values of n, the second column the value of an, and the third column - the value of ana — π|. (b) Repeat part (a) for bo,.. ... , bn, where nɩ is the smallest integer such that |b - π| < 10−6.
Chapter9: Sequences, Probability And Counting Theory
Section: Chapter Questions
Problem 46RE: Find the fourth term of (3a22b)11 without fully expanding the binomial.
Related questions
Question
not use ai please

Transcribed Image Text:Problem 5. Each of the following sequences converges to π:
an
=
6
√3
n
k=0
n
bn
=
(-1)k
3k (2k + 1)'
(-1)k
1652k+1 (2k+1)
k=0
n
-
4
Σ
k=0
(−1)k
2392k+1 (2k+1)
(a) Write a MATLAB script that computes ao, ..., ana, where na is the smallest integer such
that ana
T| < 10-6. Use fprintf to display your results in three columns, where the
first column is the values of n, the second column the value of an, and the third column
-
the value of ana — π|.
(b) Repeat part (a) for bo,..
...
, bn, where nɩ is the smallest integer such that |b - π| < 10−6.
AI-Generated Solution
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you

Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage

Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781337278461
Author:
Ron Larson
Publisher:
Cengage Learning

Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage

Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781337278461
Author:
Ron Larson
Publisher:
Cengage Learning