Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

With MATLAB We are looking for an algorithm to estimate the value of . One method is based on the fact that the perimeter of

With MATLAB We are looking for an algorithm to estimate the value of . One method is based on the fact that the perimeter of a circle of radius 1/2 is . To estimate the value of , it then suffices to estimate the perimeter of a circle of radius 1/2. So the idea is to register regular polygons in the circle and calculate the perimeter of the polygon. By increasing the number of sides of the polygon, we get closer and closer to the perimeter of the circle and therefore to . We will note pn the perimeter of the polygon having 2n sides (for example, p2 = 22) and we will assume that the following recurrence formula is true:

image text in transcribed

Write a Matlab program which will calculate pn for n = 3, 4, ..., 30 using the algorithm (3). The program must present using the fprintf command the results in a table of three columns containing the values of n, pn as well as the absolute error committed. What do you notice abnormal?

Find: the Matlab program, the table, the number of significant digits of p15 and p24 produced by this program and the discussion.

Pn+1 = 2" 21-11 Pus=z-J3(1-va-(53*), pour n-2,3.. pour n = 2, 3, ... e (3)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

More Books

Students also viewed these Databases questions