B A Pi Question: Why do we use the awkward approximation 22/7 ?

Click For Summary
The discussion centers on the use of the approximation 22/7 for π, which is often taught in schools despite the existence of alternatives like 314/100 or 157/50 that may be easier to compute with. Participants note that 22/7 is slightly more accurate and easier to memorize, making it suitable for educational purposes. Historical context suggests that 22/7 has been a standard approximation for centuries, particularly before the widespread use of calculators. Some argue that the choice of 22/7 is a relic of past practices, while others emphasize its practical utility in teaching basic arithmetic. Ultimately, the conversation highlights the balance between historical significance and computational ease in mathematical education.
  • #121
jbriggs444 said:
The intermediate stairstep shapes all retain the property that every second vertex is positioned on the circle that is circumscribed.
Ah, I see, that's what I was missing.

This construction still has the issue I described before, that it does not approach a smooth curve in the limit. Your topological definitions of the limit do not require smoothness, but I'm not sure if those definitions are sufficient for the limit of the perimeter to be well-defined.

I do agree that there is no general rule that the limit of the perimeter must be the same as the perimeter of the limit.
 
Mathematics news on Phys.org
  • #122
PeterDonis said:
Ah, I see, that's what I was missing.

This construction still has the issue I described before, that it does not approach a smooth curve in the limit. Your topological definitions of the limit do not require smoothness, but I'm not sure if those definitions are sufficient for the limit to have a well-defined perimeter.
It does approach a curve in the limit. The curve that is approached is a circle. A circle is smooth.

The fact that the "smoothness" of the sequence of curves does not converge upon "smooth" in the limit is irrelevant. The limit of the smoothness is not necessarily equal to the smoothness of the limit. Those two concepts do not commute.
 
Last edited:
  • #123
jbriggs444 said:
It does approach a curve in the limit. The curve that is approaches is a circle.
Does it? Perhaps that's where my question should have been focused. I know it seems intuitively like it does, but intuitions cannot always be trusted.
 
  • #124
PeterDonis said:
Does it? Perhaps that's where my question should have been focused. I know it seems intuitively like it does, but intuitions cannot always be trusted.
Use the definition.
 
  • #125
jbriggs444 said:
Use the definition.
What definition?
 
  • #126
PeterDonis said:
What definition?
The one I posted. Either the preliminary one in #113 or the relaxed one in #114.
 
  • #127
PeterDonis said:
I don't know what you mean. The circle's perimeter is ##\pi d## always. The perimeter of the square is ##4##, and so is the perimeter of every "stairstep" construction derived from it. What "approximate perimeter of the circle" are you talking about?
Edit: Disregard this comment per post #133.

The "approximate perimeter of the circle" is the perimeter of the irregular polygon composed by the sum of the hypotenuses of each "step", i.e. ##\sqrt{\text{run}^2 + \text{rise}^2}##, lying outside the circle: a 4-side polygon with the square (top-right corner), an 8-side polygon with the middle-left image, and a 16-side polygon with the middle-right image. The more sides you have, the better the approximation.

f4d7b0d8f6201f482c33e3eeb64ba228.jpg
 
Last edited:
  • #128
jack action said:
The "approximate perimeter of the circle" is the perimeter of the irregular polygon composed by the sum of the hypotenuses of each "step"
Which has nothing whatever to do with the argument that was referred to that uses the stair step construction. So it is irrelevant to this thread.
 
  • #129
PeterDonis said:
Which has nothing whatever to do with the argument that was referred to that uses the stair step construction. So it is irrelevant to this thread.
The question I was answering was:
Agent Smith said:
Well, what's the explanation for the error then? ##\pi \ne 4, \pi = 3.14159...##. [...] We could investigate where the extra ##0.8584073464102067615373566167205...## is coming from.
And the answer is that it's the difference between the sum of the sides adjacent to the right angles and the sum of the hypotenuses formed by those sides.
 
  • Like
Likes Agent Smith
  • #130
jack action said:
it's the difference between the sum of the sides adjacent to the right angles and the sum of the hypotenuses formed by those sides
But according to the stairstep construction, both of these things approach the same limit. So how can they give different answers? You do not address this, which is the actual question at issue, at all.
 
  • Like
Likes jbriggs444
  • #131
jack action said:
The question I was answering was:

And the answer is that it's the difference between the sum of the sides adjacent to the right angles and the sum of the hypotenuses formed by those sides.
The figure in question is ##4-\pi \approx 0.8584073464102067615373566167205##.

That is not the difference in perimeter between any particular circumscribed stairstep shape with ##2^{n+1}## sides and the perimeter of the corresponding inscribed ##(2^n)##-gon. The one perimeter is always 4. The other perimeter is always some under-estimate for ##\pi##.

It is the difference between the limit of the sequence of perimeters of the stairstep shapes and the limit of the sequence of perimeters of the corresponding inscribed polygons. The one limit is 4. The other limit is ##\pi##.
 
  • #132
jbriggs444 said:
As I understand the construction, we begin with a square within which a circle is circumscribed.
A circle inside a square and tangent to the four sides of the square is said to be inscribed. A circle outside the square for which the corners of the square touch the circle is said to be circumscribed.

BTW we've ventured quite a way from the original subject of the thread, of why we use the "awkward" approximation to ##\pi## of 22/7.
 
  • #133
PeterDonis said:
But according to the stairstep construction, both of these things approach the same limit.
Sorry, my bad. I should have done one more step in post #116 to find out it was going over ##\pi##. Disregard my comment. o:)
 
  • #134
Mark44 said:
BTW we've ventured quite a way from the original subject of the thread, of why we use the "awkward" approximation to ##\pi## of 22/7.
In an effort to bring us back somewhat on track, let us explore the question of what regular n-gons have a perimeter to "diameter" ratio closest to 22/7. It turns out that the answer is between 90 and 91.

We begin by noting that ##\frac{22}{7}## is greater than ##\pi##. So we should be looking at circumscribed polygons.

The formula for the perimeter of such a polygon with radius ##r## (measured from centroid to the middle of an edge) is:$$2nr \tan \frac{\pi}{n}$$We can tabulate this for a number of sides going from 3 on up. After writing a bit of code:
Code:
[...]
Number of sides: 4, radius: 0.5, side_length: 1, perimeter: 4 target = 3.14285714285714
[...]
Number of sides: 90, radius: 0.5, side_length: 0.0349207694917477, perimeter: 3.1428692542573 target = 3.14285714285714
Number of sides: 91, radius: 0.5, side_length: 0.0345367179994631, perimeter: 3.14284133795114 target = 3.14285714285714
If we flip tan to sine then virtually the same code can look at inscribed polygons where the radius is measured to the vertices.
Code:
[...]
Number of sides: 6, radius: 0.5, side_length: 0.5, perimeter: 3 target = 3.14
[...]
Number of sides: 56, radius: 0.5, side_length: 0.0560704472371918, perimeter: 3.13994504528274 target = 3.14
Number of sides: 57, radius: 0.5, side_length: 0.0550877603558654, perimeter: 3.14000234028433 target = 3.14
Here is the "circumscribed" version of the code.
Code:
#!perl

use strict;

sub tan { sin($_[0]) / cos($_[0]) };

my $i;
my $radius = 0.5;
my $pi = 3.1415926535897932384626;
my $target = 22/7;
my $perimeter = 999;

for ( $i = 3; $perimeter > $target; $i++ ) {
    my $half_angle = $pi / $i;
    my $side_length = 2 * $radius * tan($half_angle);
    $perimeter = $i * $side_length;
    print STDOUT "Number of sides: $i, radius: $radius, side_length: $side_length, perimeter: $perimeter target = $target\n"
};
 
Last edited:
  • #135
I don't get it. If the jagged staircase does converge on a smooth curve, ##\pi = 4## shouldn't happen. We would be measuring/computing the same thing. How can ##1## thing have ##2## different lengths.

In the video link provided by @A.T. we see that integration has a jagged staircase element to it (more and more of thinner and thinner rectangles, sum their areas and we get the integral). The only difference here is we're not measuring the length of the curve, but the area. Gracias A.T.

@jack action , merci for the explanation. There's an extra ##4 - \pi = 0.8584073464102067615373566167205## when "computing" ##\pi## using the staircase. This mysterious extra length needs to be explained.

##1## quadrant's (quarter circle) arc length = ##2 \pi r / 4 = 2 \pi \times 0.5 / 4 = 0.78539816339744830961566084581988##.

The staircase has for ##1## quadrant (quarter circle) a length of ##0.5 + 0.5 = 1## and
The difference between the staircase and the quadrant arc of the circle = ##1 - 0.78539816339744830961566084581988 = 0.21460183660255169038433915418012##

We can see that ##4 \times 0.21460183660255169038433915418012 = 0.8584073464102067615373566167205##

Perhaps we might need to go TO INFINITY AND BEYOND to make the staircase argument work! 🤔
 
  • #136
@Vanadium 50 , it was a simple high school curriculum question on ##\pi## and it (d)evolved into the staircase paradox.
 
  • #137
Now it's a "paradox"? When I was learning about it, it was just "making a mistake".
 
  • #138
Agent Smith said:
If the jagged staircase does converge on a smooth curve, ##\pi = 4## shouldn't happen.
You have already been told that this argument is not valid. Limits in general do not have to work that way.
 
  • #139
Agent Smith said:
In the video link provided by @A.T. we see that integration has a jagged staircase element to it (more and more of thinner and thinner rectangles, sum their areas and we get the integral). The only difference here is we're not measuring the length of the curve, but the area. Gracias A.T.
As the video explains: You have to show that the error goes to zero. This is the case for the area, but not for the perimeter.
 
  • Like
Likes Agent Smith and jbriggs444
  • #140
Agent Smith said:
@jack action , merci for the explanation. There's an extra ##4 - \pi = 0.8584073464102067615373566167205## when "computing" ##\pi## using the staircase. This mysterious extra length needs to be explained.
It was a mistake on my part. See post #133.
 
  • #141
Agent Smith said:
If the jagged staircase does converge on a smooth curve, ##\pi = 4## shouldn't happen.
"Should" is a word that often makes me cringe.

In my career as an IT troubleshooter, the word was most often used by users when complaining that the behavior that they were experiencing did not match the behavior that they expected.

I could ask the users why they thought that their stuff "should" do such and such. Rarely were they able to say. Eventually, I would usually give up. End users usually have no clue about how their programs work, what demands they make on the network and what level of performance can be expected. I would have to reverse engineer the application and figure out for myself how it worked, how it could be expected to behave and what changes could be feasibly made to address the perceived issues.

To me, "should" labels an expectation that has no underlying logic.

If you can carefully explain why the limit approached by the perimeters of a sequence of ever finer stairstep shapes should match the perimiter of the limiting shape that is approached then we would have something to explain.

Just saying that the limit of the perimeters "should" match the perimeter of the limiting shape is not sufficient.

Agent Smith said:
We would be measuring/computing the same thing. How can ##1## thing have ##2## different lengths.
Nope. We are not finding two lengths for the same thing.

We are comparing the limit of a sequence of lengths of jagged stairstep shapes with the length of the smooth limiting shape.
Agent Smith said:
In the video link provided by @A.T. we see that integration has a jagged staircase element to it (more and more of thinner and thinner rectangles, sum their areas and we get the integral). The only difference here is we're not measuring the length of the curve, but the area. Gracias A.T.
An integral is not a sum of areas. It is a limit approached by a set of sums of areas.

https://en.wikipedia.org/wiki/Riemann_integral
Agent Smith said:
Perhaps we might need to go TO INFINITY AND BEYOND to make the staircase argument work! 🤔
A course in real analysis would be helpful.
 
Last edited:
  • Like
Likes Agent Smith
  • #142
@A.T. That's right, the error has to become ##0## and that's where we should start. We first compute the error before we build the staircase. Say the perimeter of the circle = C. The perimeter of the square = ##P_S = 4##. The error = ##P_S- C##. We then begin our staircase argument, but the perimeter(staircased square) remains constant at ##4## i.e. ##P_S - C = k = 0.85840734641...## (a constant). This construction, if we could call it that, doesn't work; if it did ##\left(P_S - C\right) \to 0##

@jack action I don't think it's a mistake. In one sum we're summing the base and height of the right triangles in a staircase and in the other we're taking only the hypotenuse (the curve). The triangle inequality law states that the sum of ##2## sides of a triangle > the length of the other side.
Capture.PNG

All the construction seems to be doing is dividing AB and BC into smaller and smaller parts and then later summing them all back up to AB and BC. ##n \times \frac{\text{AB}}{n} = \text{AB}## and ##n \times \frac{\text{BC}}{n} = \text{BC}##.

If the staircase is an approximation of the circle's circumference, we're counting the wrong thing. Maybe we should be counting/adding the hypotenuses of the triangle ABC, instead of adding AB + BC. Nescio.
 
  • #143
jbriggs444 said:
To me, "should" labels an expectation that has no underlying logic.
Sorry for the imprecise language, This question's Affix is B: Basic. Would appreciate if the discussion could be kept as simple (as possible). I should've said:
If the staircase is a (good) approximation of the arc then, as the construction is carried on to infinity then, error ##(\text{Arc length} - \text{Stair case length}) \to 0##

jbriggs444 said:
We are comparing the limit of a sequence of lengths of jagged stairstep shapes with the length of the smooth limiting shape.
Si.

jbriggs444 said:
An integral is not a sum of areas. It is a limit approached by a set of sums of areas.
Thank you for the clarification. I erroneously believed my description of an integral, based on ever thinner rectangles meant the same thing as "a limit approached by a set of sums of areas".
 
  • #144
Agent Smith said:
If the staircase is an approximation of the circle's circumference, we're counting the wrong thing.
I'm not sure what you mean. The fact that the perimeter of the staircase is ##4## for all ##n## is a simple consequence of the construction.

If you count the lengths of the hypotenuses instead, you're not using the staircase construction, you're doing something else. That something else might well have a different limiting behavior of its perimeter, but that's irrelevant to the limiting behavior of the staircase construction itself.

The simple answer is that the limit as ##n \to \infty## of the perimeter of the staircase is ##4##, even though the "limiting curve" of the staircase (at least by a definition given earlier in this thread) is the circle. Welcome to the actual theory of limits, where your intuitions about how they "should" work are not always correct.
 
  • Like
Likes jbriggs444
  • #145
Agent Smith said:
If the staircase is a (good) approximation of the arc then, as the construction is carried on to infinity then, error ##(\text{Arc length} - \text{Stair case length}) \to 0##
No, because it's only a good approximation in terms of area enclosed by the arc, not in terms of arc length. There is no general meaning of "good approximation of an arc". You have to be specific about which quantitative property of the arc is well approximated.
 
  • #146
No problem, Archimedes.PNG
 
  • Skeptical
Likes jbriggs444
  • #147
Agent Smith said:
Scaling the whole thing doesn't change the ratio of perimeter to d, which is still 4.
 
  • Like
Likes Agent Smith
  • #148
Agent Smith said:
If the staircase is an approximation of the circle's circumference, we're counting the wrong thing.
Yes. If your goal is to compute the circumference of a circle, taking the limit of a sequence of 4's is the wrong way to go about it.

Edit: One more thing that I will point out. It is a subtlety about the staircase construction that you may not have considered. You included this series of drawings.
1724239864253.png

Here the rectangles that are carved away from the staircase corners appear to be squares. That is a sub-optimal choice.

If you carve away squares then the corner pieces that are carved away will be smaller and smaller fractions of this particular step. In the limit, this particular right-center-top step will lose about ##\frac{1}{n}## of its scale with each iteration.

So the convergence properties of this particular version of the stairstep construction are not great. Convergence is still assured. The sum of a harmonic series is infinite. We will still succeed in reducing every step size to a limit of zero. But the number of iterations required will be exponential.

We have a free choice in exactly what rectangle to carve out of each stairstep with each iteration. Where should we place the corner that lies on the circular arc?

It is possible to make that choice pathologically so that the stairstep shape does not converge to a circle. With purposely contrived choices, one can keep some of the steps from ever shrinking beyond a certain point.

One way to assure good convergence is to make a choice of chopped-out-corner-rectangle that splits the perimeter of each step exactly in half.

If one is attempting to use the definition up-thread and rigorously prove that the stairstep construction converges to a limiting shape that is a circle then convergence of the step size is a crucial detail and a calculable rate of convergence is helpful.

e.g. "At step ##n##, no point on the constructed stairstep shape is more than distance ##\frac{1}{2^n}## from the enclosed circular shape"
 
Last edited:
  • Like
Likes Agent Smith
  • #149
@jbriggs444, it's getting too complex for the likes of me, mon ami.

As you rightly pointed out, the diagram I drew fails to do justice to the actual events on the arc-staircase. We do have a iterative process (fold corners in on the curve/arc), but length-wise there's variability that I can't handle at the moment with my limited knowledge of math.

Let's look at the original staircase paradox:
staircase paradox 9.png

As the story ends, ##\sqrt 2 = 2##

I was trying to look at it from a vectors POV and isn't it true that: ##\overrightarrow {AB} + \overrightarrow {BC} = \overrightarrow {AC}##. We break down the vector ##\overrightarrow {AC}## into it's ##2## components, the horizontal ##\overrightarrow{BC}## and the vertical ##\overrightarrow {AB}##. However ##|\overrightarrow {AC} | \ne |\overrightarrow {AB}| + |\overrightarrow {BC}|##. Doesn't the staircase paradox violate the triangle inequality theorem?

Shouldn't we also be able to work backwards? Start with the diagonal and construct a staircase that ultimately becomes a square for that diagonal? The same for the arc/curve. Go from curve to staircase. How would you argue that I wonder?
 
  • #150
Agent Smith said:
Let's look at the original staircase paradox:
[...]
I was trying to look at it from a vectors POV and isn't it true that: ##\overrightarrow {AB} + \overrightarrow {BC} = \overrightarrow {AC}##.
Yes, that is a correct statement.
Agent Smith said:
We break down the vector ##\overrightarrow {AC}## into it's ##2## components, the horizontal ##\overrightarrow{BC}## and the vertical ##\overrightarrow {AB}##. However ##|\overrightarrow {AC} | \ne |\overrightarrow {AB}| + |\overrightarrow {BC}|##. Doesn't the staircase paradox violate the triangle inequality theorem?
What does the triangle inequality actually say?$$|\vec{AC}| \le |\vec{AB}| + |\vec{AC}|$$That requires neither equality nor inequality. The last time I checked,$$2 \le 2$$and $$\sqrt{2} \le 2$$In a general sense, the triangle inequality applies to what we can consider as a measure of "distance". To what mathematicians would call a "metric".

If one applies the stairstep method to evaluate the "length" of an arbitrary curve, one arrives at what is often called the "taxicab metric".

The taxicab metric obeys the triangle inequality. But it does not match the Euclidean metric which also obeys the triangle inequality.
Agent Smith said:
Shouldn't we also be able to work backwards? Start with the diagonal and construct a staircase that ultimately becomes a square for that diagonal? The same for the arc/curve. Go from curve to staircase. How would you argue that I wonder?
Certainly, one can invert the sequence of intermediate shapes so that the successive stairstep approximations are each more coarse-grained than the last.
'
The limit is still there. At the fine-grained end. But thinking of this as a "process" runs into a serious snag: What is the first step? The answer is that there is none. Which makes it pretty hard to regard the reversed thing as a process.

That is also the snag in the forward process. There is always a next step. But never a last step.

If one carefully examines the formal definition of a limit, one sees that time plays no role. There is no process. No need for a last step. There is (or is not) a result that fulfills a condition. A condition phrased with epsilons, deltas, for alls and there exists.

Yes, as an intuitive notion there is a process and a limit is the thing approached by the process. However, that notion does not necessarily carry over into the formal definition.
 
Last edited:
  • Like
Likes PeterDonis

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 25 ·
Replies
25
Views
5K
  • · Replies 29 ·
Replies
29
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 42 ·
2
Replies
42
Views
12K
  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 42 ·
2
Replies
42
Views
7K