Login | Register

Challenge Questions

Stop in and exercise your brain. Talk about this week's Challenge from CR4 (weekly), Specs & Techs (monthly) or similar puzzles.

So do you have a Challenge Question that could stump the community? Then submit the question with the "correct" answer and we'll post it. If it's really good, we may even roll it up to Specs & Techs. You'll be famous!

Answers to Challenge Questions appear the following Tuesday.

Previous in Blog: Unusual Area: CR4 Challenge (09/22/09)   Next in Blog: Polar Ice: CR4 Newsletter Challenge (10/06/09)
Close

Comments Format:






Close

Subscribe to Discussion:

CR4 allows you to "subscribe" to a discussion
so that you can be notified of new comments to
the discussion via email.

Close

Rating Vote:







47 comments

Square with area of circle: CR4 Challenge (09/29/09)

Posted September 27, 2009 5:01 PM

This week's Challenge Question:

Given a circle of any given radius "R", and an adjustable compass that holds its size and not calibrated in any way, plus a straight edge also not calibrated or marked in any way, and the ruler and compass to be used separately. Show how to construct a square of lengths "L" that has an area that approximates the area of the circle of diameter "D". Your construct is to differ from that of Srinivasa Ramanujan construct. But your construct to have the same required precision as Srinivasa Ramanujan, ( L²/R²)-∏ < 0.000000005.)

Thanks to jdretired for providing us with this puzzle.

And the Answer is...

Scribe circle C1 with centre O, scribe horizontal line WE and vertical line NS both passing through circle C1 centre O, scribe line VZ at 45 deg and line XY at 45 deg both passing through the centre of circle C1 at O, construct square VXYZ. Scribe lines S1,W1 and W1,N1 and N1,E1, divide O,W1,V,N1 into 4 equal parts by joining up the intersections, and include the diagonal bottom right and top left. With compass set to radius V,T scribe circle C2, extend line Z,V to intersect C2 at M.

With compass set to C1 radius, at centre S scribe an arc intersecting circle C1 at R1, scribe a line from O to R1 intersecting line V,Y at P. Scribe a line from P parallel to W,E to intersect circle C1 at Q. Scribe a line from Q to M, intersecting lines W1,N1 at A, line Y,X at B and the bottom right diagonal at C, with compass set to radius C,A at centre Z scribe circle C3, extend line V,Z to intersect circle C3 at R2. With compass set to radius O,R2 scribe an arc from R2 to intersect an extension of E,W at F. and an extend of line N,S at G. The distance from F to G equals L being the length of a side of a square that would approximate the area of the circle C1.

Maths:

In the maths example D = 10, therefore L using ∏ = 8.862269255.

Calculate length Y,Z. = √ ((10²)/2) = 7.071067812

Calculate length H,S2 = ((Y,Z)/8)x5) = 4.419417382

Calculate height S2,O = ((Y,Z)/2) x tan 30 = 2.041241452

Calculate S2,Q = √(R² -(S2,O)²) = 4.564354646

Length H,Q = H,S2 + S2,Q = 8.983772028.

Height H,M = H,S2 + S2,O = 6.460658835.

Find angle Z,M,Q = atan(H,Q/H,M) - 45 = 9.278287358 deg

Length A,B = (R/2)/cosM = 2.533141376

Note angle M = 9.278287358 deg is also a constant for this construct.

Find length L = √((D+AB)²)/2) = 8.862269257

Therefore the length L has an error of 0.000000002

Accuracy ratio (L²/R² = 3.141592655) - (∏ = 3.141592653) = 0.000000002

Therefore ratio error to pi = 0.000000002


Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Comments rated to be Good Answers:

These comments received enough positive ratings to make them "good answers".

Comments rated to be "almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, rate them!
Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#1

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/28/2009 11:24 AM

There must be a large number of ways to do this?

So I thought about some selection criteria:
Economy of construction
Resistance to constructional errors
Accessibility to historic geometric analysis

There are probably many more...

But so far I've signally failed to succeed in even two of these simultaneously.

Power-User

Join Date: Feb 2008
Location: Washington State
Posts: 157
Good Answers: 28
#2

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/28/2009 12:46 PM

First, a lawyer's approach to the problem.

Make L = R. (L2/R2)-∏ = 1 – ∏ = –2.14159... < 0.000000005.

Okay, that really is not a solution. All good engineers and scientists would know the absolute value of the difference needs to be less than 0.000000005.

One approach would be to construct a line of length L that is ∏ time R. One approximation to ∏ (that was used in the Resistance of Pi Challenge) is 335/113. This however would give an error of 0.00000027 which is 53 time too large. Srinivasa Ramanujan's approximation is (92 + 192/22)1/4 or (2143/22)1/4 which I wouldn't know how to construct given the available tools.

Good Challenge Question. I'll keep trying but I don't expect to find a solution.

Thanks,

Jim

4
Power-User

Join Date: Feb 2008
Location: Washington State
Posts: 157
Good Answers: 28
#6
In reply to #2

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/28/2009 6:41 PM

Consider the quarter circle in the following figure. It has a radius of R. If a line is drawn connecting the two ends of the quarter circle arc (X1), this is a crude approximation of the arc length (21/2R versus ∏/2*R or approximately 1.4142 R versus 1.5708 R). If we bisect this angle, we can construct the line X2, which has a length of approximately 0.7654 R versus 0.7854 for the arc it subtends. If we keep bisecting the angles and comparing the linear approximations to the subtended arcs, we get closer and closer, percentage wise. After enough continued steps, the length of the line segment is close enough to the arc length to be good enough. If the angle is defined as Θ = ∏/2n, then for n = 14 our error is less than that required of the challenge. If we then mark off on a straight line, n of these line segment lengths, we get our approximation to ∏ R.

Now we need to get a line of length ~∏1/2 R. Draw a rectangle of width ~∏ R and height R. Construct a circle with radius ~∏ R/2 centered at the middle of the bottom side. Also construct a circle with radius R centered at the bottom left hand corner. Where the last circle intersects the bottom side, construct a perpendicular line to the top side and extend to the first circle. By magic (check my math please), the length of the line from the center of the small circle to the intersection on the large circle is ~∏1/2 R.

Construct a square with a side of this length and the area is ~ ∏ R2.

Thanks,

Jim

Good Answer (Score 4)
Power-User

Join Date: Mar 2007
Posts: 262
Good Answers: 5
#10
In reply to #6

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/29/2009 5:24 AM

Checked.

Beautiful!

__________________
Constant change is here to stay!
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#11
In reply to #6

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/29/2009 5:35 AM

GA (so far)

If we then mark off on a straight line, n of these line segment lengths.

I think that needs to be 2n of these line segments. I'm afraid that makes this construction a bit impractical.

(check my math please)

Yep this is a standard way to construct a square the same area as a rectangle.

It's fairly easy to prove from first principles, but, it's also just a special case of the crossing chords thing a*b=x*y

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Power-User

Join Date: Feb 2008
Location: Washington State
Posts: 157
Good Answers: 28
#15
In reply to #11

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/29/2009 10:37 AM

Thanks,

Yes it should be 2n line segments. That is 16384 line segments and yes that would be impractical. But anything with a compass and straight edge that has an error of less than one is something like a half billion is impractical.

I am sure there must be methods to get a factor of ∏ with less steps but they elude me.

Thanks,

Jim

Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#12
In reply to #6

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/29/2009 6:14 AM

GA - but some thoughts:
. This requires a minimum angle of less than a minute; but it could be the seed for a method that requires a minimum angle of about 1.5O, which in turn can be used to develop a method that can work at about 10O. (This would seem good enough to me, but perhaps larger minimum angles would be possible if we also use the exterior polygon - I haven't checked).
. The last part looks to occupy a lot of surface - might we use the geometric mean of 2 and ∏/2 to develop √∏?

Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#33
In reply to #2

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/05/2009 4:18 PM

There does seem to be a small problem with the dimensions if we follow Ramanujan's equation too literally, and this wouldn't be an acceptable solution anyway. I don't know how Ramanujan would have performed this construction (anyone have a reference?), but perhaps we could aim initially to generate it as 3.(R.(1+(192/92/22))1/4).

The following brute-force method should then be OK:

Starting from the innermost bracket:

To generate R.192/92/22
r.19/18=r.(1+1/18) is constructible and of reasonable size.
We can square this by drawing a tangent of that length to the original circle of radius R, drawing a circle radius one centred on the end of the tangent, and joining the end of the tangent to to the intersection of the circles. The distance between the second intersection of the circles and the end of the tangent is the length we require.

Doubling this length and then dividing by 11 should be straightforward.
Extend by this length by the length of a single radius R, and we have R.(1+(192/92/22)).

Take the square root of R.(R.(1+(192/92/22)) using your established method.
Repeat the procedure on the result..

You now have a line of length approximately pi.R/3. Multiply by 1.5 to generate (theoretically) R.(p - 1.00715E-9)/2
Now use your "square-rooting" technique to take the geometric mean of 2.R and your approximation to R.pi/2 - the side of your square.

Off Topic (Score 5)
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#34
In reply to #33

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/06/2009 3:08 AM

In case anyone else is trying to follow this

........"To generate R.192/92/22"..........

Should read ........"To generate R.192/92/22"..........

(Left me baffled for ages, but that doesn't take much)

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Off Topic (Score 5)
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#35
In reply to #33

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/06/2009 4:15 AM

Again for any one else trying to follow, this is the construction to square a line:-

The grid is 1 unit; the original circle has radius 2; the tangent at the bottom of the original circle is 2.111111... units long (= 2*(1+1/18), and, the highlighted line is the required square of that tangent.

For me (at least) this is a great thing to take away from this thread:- Thanks Fyz.

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Off Topic (Score 5)
Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#36
In reply to #35

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/06/2009 5:37 AM

Thanks, Randall.
Though actually my intention was r.(19/18)2x2 rather than r.(19/9)2/2. Combined with using r.pi/2 as the intermediary instead of r.pi, this avoids the requirement for using any dimension that is greater than 2.R (and we can even use the original circle to generate the square if we wish).

Off Topic (Score 5)
Power-User
Hobbies - DIY Welding - New Member, but planning to be an Old Member

Join Date: Apr 2009
Location: Fargo, America
Posts: 143
Good Answers: 5
#3

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/28/2009 5:41 PM

"compass that holds its size..." I assume that means all arcs or circles used in construct must be same radius as circle. Is this correct?

Wow, I am usually pretty good at this sort of thing. Math simple on this one, but the construct with only one measurement... Uffda.

Coming up (so far) with construct that matches math to within .15, nowhere near required 8 decimal places. Not sure my proof is correct, anyway.

If I knew there was gonna be a test, I woulda studied!

__________________
" I ain't no physcikisk, but I knows what matters." Popeye the Sailor
Guest
#7
In reply to #3

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/28/2009 6:57 PM

I think it means can be set to what you wish and holds its size thereafter (in contrast to Euclid's compass that collapses when you take it off the paper). The intent would presumably be to simplify the drawing process - and its description.

Commentator
United States - Member - Engineering Fields - Mechanical Engineering - Hobbies - Fishing - Hobbies - Musician -

Join Date: Jun 2009
Location: California
Posts: 78
Good Answers: 13
#4

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/28/2009 6:31 PM

One way to "square the circle" is shown here. It is a quite lengthy procedure, but it appears that it the square area represents the circle area to within 0.000000001.

Guru
Engineering Fields - Marine Engineering - New Member

Join Date: May 2007
Location: Australia.
Posts: 850
Good Answers: 26
#5

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/28/2009 6:40 PM

Srinivasa Ramanujan. construct.

Regards JD.

Associate

Join Date: Jun 2009
Posts: 26
Good Answers: 3
#8

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/28/2009 11:40 PM

after squaring a circle you will expect me to trisect an angle?

Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#9
In reply to #8

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/29/2009 4:28 AM
__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Off Topic (Score 5)
Guest
#13
In reply to #8

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/29/2009 9:14 AM

Make the square Pi times Pi which equals pi x D/4.

this any help to someone not at work like I am

Guest
#14
In reply to #13

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/29/2009 9:54 AM

No help, unfortunately. That would give pi2xD2/4.

Guru

Join Date: Jul 2007
Posts: 3354
Good Answers: 81
#20
In reply to #8

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/01/2009 6:18 PM

That's easy within the limits of this challenge.

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Off Topic (Score 5)
Power-User

Join Date: May 2008
Posts: 103
Good Answers: 6
#16

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/30/2009 1:56 PM

I think the question is not being construed correctly by those trying to answer. We are challenged to find a construct with "construct to have the same required-precision as Srinivasa Ramanujan". SR construct uses 355/113 for P), and any solution should presumably do the same. We are, in my opinion not required to do better. This means we must somehow generate 255/113

A brute force way of doing this would be to

draw a unit length (arbitrary) line, use this to generate binary lengths

1 Form line 355 from binary lengths 256,128,8,4,1 and line 113 from 64,32,16,1

2 Divide the lengths by Similar triangles 355/113 = ~Pi/1

3 Find √~Pi by crossing chords (Randall #11) Start with rectangle ~Pi x 1

4 a = √~Pi*r by similar triangles.

I am sure a more efficient way can be devised by other members. Perhaps the old challenge of forming Pi with resistors can somehow be turned into geometry?

Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#24
In reply to #16

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/02/2009 6:07 AM

355/113 predates SR by over 1400 years*, and only gives an accuracy of about 3.10-7. The requested accuracy is 5.10-9, which corresponds to a practical truncation of one of SR's own geometrical methods.

*What Ramanujan did in respect of the 355/113 approximation can be found here (page5). Basically, he showed a practical way to produce a Euclidean construction for this.

Power-User

Join Date: Mar 2007
Posts: 262
Good Answers: 5
#25
In reply to #24

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/02/2009 7:14 AM

(355/113-∏)/∏<8.492x10exp(-8)

__________________
Constant change is here to stay!
Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#26
In reply to #25

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/02/2009 7:37 AM

The challenge was quite specific: the error measure was L2/R2-∏.

This gives (335/113-∏), which is as previously stated - 2.66764E-7, or about 3.10-7

Power-User

Join Date: Mar 2007
Posts: 262
Good Answers: 5
#27
In reply to #26

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/02/2009 12:28 PM

I stand corrected.

__________________
Constant change is here to stay!
Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#28
In reply to #27

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/02/2009 12:41 PM

Kudos - it is often harder to recognise and admit an error than to be right in the first place.

Commentator

Join Date: Feb 2008
Posts: 93
Good Answers: 16
#17

Re: Square with area of circle: CR4 Challenge (09/29/09)

09/30/2009 11:55 PM

I will try to do this without diagrams so please excuse me if it is a bit confusing. Consider the following three points A, B & C. A is any point on the circumference of a circle. B is a point at end of straight line of length (pi.R)/2 from A which passes through the centre of the circle. C is one of the two points (doesn't matter which one) where line perpendicular to line AB which intersects AB at B crosses the circumference. It can be shown (I can do the working out if someone wants but would prefer not to spend the space here) that the length of AC is (sqrt pi).R so a square with sides equal to this would have the same volume as the circle. So now all we have to do is construct a line whose length is equal to (pi.R)/2 accurate to 6 decimal places. Luckily someone has already worked out a value for pi which is the fraction 355/113 which is accurate to 6 decimal places. Now given any arbitrary circle radius (R) it is relatively easy to construct a length which is 355/113 of this using a straight edge and compass. To start draw a very long line and starting at a point (say P1) measure out 355 lengths of R along the line using the compass and call that point P2. The line P1P2 is 355R long. Now divide this line into 113 equal segments (method for doing this with straight edge and compass is relatively simple and can be found on the net). Each of these segments has length (355R)/113. Now divide one of these segments in half and apply in the initial construction to get an approximation to (sqrt pi).R that has the required accuracy.

Power-User

Join Date: Aug 2009
Location: Glen Mills, PA.
Posts: 166
Good Answers: 2
#18
In reply to #17

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/01/2009 8:05 AM

"B is a point at end of straight line of length (pi.R)/2 from A"

I have only a compass and an unmarked straight edge. I don't have a measuring stick.

__________________
“I have caused great calamities. I have depopulated provinces and kingdoms. But I did it for the love of Christ and his Holy Mother.” ~ Queen Isabella of Spain, who promoted the torture and genocidal atrocities of the Inquisition
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#19
In reply to #18

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/01/2009 10:05 AM

From BobD's post:-

So now all we have to do is construct a line whose length is equal to (pi.R)/2 accurate to 6 decimal places.

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Guru

Join Date: Jul 2007
Posts: 3354
Good Answers: 81
#21

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/01/2009 6:20 PM

So, can I use the Poincare plane?

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Power-User

Join Date: Aug 2009
Location: Glen Mills, PA.
Posts: 166
Good Answers: 2
#22
In reply to #21

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/01/2009 7:28 PM

I had to look that up. At my age there's no damned way am I going to mess up my head with the black art of the tensors.

__________________
“I have caused great calamities. I have depopulated provinces and kingdoms. But I did it for the love of Christ and his Holy Mother.” ~ Queen Isabella of Spain, who promoted the torture and genocidal atrocities of the Inquisition
Off Topic (Score 5)
Guru

Join Date: Jul 2007
Posts: 3354
Good Answers: 81
#23
In reply to #22

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/01/2009 7:36 PM

I agree. I have enough trouble trying to keep Euclidean space straight in my alleged mind. I was just "poking him in the eye with a sharp stick" as the old folks say. I think he appreciates good clean fun (I hope so).

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Off Topic (Score 5)
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#29

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/02/2009 1:28 PM

This is more of an exercise in how not to do it rather than: how to do it, but, it does nearly work.

Root 10 is 3.162 so first note that √(10-3/(23+1/144)) is close to pi.

In fact I'm a bit confused because

√(10-3/(23+1/144))–п = 0.0000000297

Where as 355/113-п is = 0.0000002667

So although I don't meet the requirements of the challenge I think this is nearly ten times as good as Ramanujan's construction (When I say good I mean in terms of accuracy: obviously this is hideous where as Ramanujan's is beautiful).

First copy R 9 times so that we have a line of length 10R, and draw a random line to use to create a "divider" for the last 3 Rs

Divide the random line into quarters (23 is one less than 24 which is ¾ of 32)

Divide the third quarter by 8 (one 32nd part of the random line).

Copy this length to the "origin" of the line.

Tidy everything up.

Focus on the 24th section and draw a new random line to use as a new "divider".

Divide the new random line by eight.

Extend the line then copy one eighth to the extension (144 – 128 is 16 which is 1/8th of 128)

Tidy up again

Focus on bottom section and divide into 128 of second random line. I wish I hadn't started this!

Tidy up again, you can't quite see the crucial section near the "origin" of the new random line.

Join the end of the random line to the "top" of the 24th section of the original random line, and then draw a line parallel to it at the 1/144 point.

Detail:-

Truncate the original random line.

And Tidy up again

Join the end of truncated line to the point 3R from the end of the 10R line and draw a parallel from the ~1/23 point.

Truncate the original 10 R line.

And tidy up again: the line is now approximately pi2R long.

Draw the rectangle with area pi2 R2

And construct the square with area pi2 R2. See post #11

At this point I thought it had all gone horribly wrong, but, I consulted my original post it note. The rectangle. At the bottom of the square has area ~ pi R2.

Construct the square with the same area.

Phew. It's easy to see that I could have further divided one of those 1/144 line segments to get better resolution.

Clearly this would be impossible on a sheet of paper.

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Score 1 for Good Answer
Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#30
In reply to #29

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/02/2009 5:52 PM

Ramanujan created many constructions - and the one referred to in the challenge is a truncated multiple-square-root arrangement whose original maths was also due to Ramanujan. This contrasts with the 355/113 construction which was just(?) an elegant tour-de-force to show that apparently difficult numbers could sometimes be created tidily.

I beleive that the interest in seeing how the 355/113 approximation could be achieved tidily was mainly due to its antiquity.

This is an interesting answer, nonetheless.

Power-User

Join Date: Mar 2009
Posts: 154
#46
In reply to #29

Re: Square with area of circle: CR4 Challenge (09/29/09)

11/05/2009 12:31 AM

why should i think about things i could never do?

Guest
#47
In reply to #46

Re: Square with area of circle: CR4 Challenge (09/29/09)

11/05/2009 4:16 AM

You would certainly have a dull life if you never thought about anything you could never do.

Of course the other reason is that some "things you could never do" are useful to develop or refresh techniques that are relevant to "things an engineer should be able to do" - but in a form that removes distractions that make it difficult to concentrate on the technique itself.

In this particular case the two methods found in this thread are 'successive approximation' and 'higher order cancellation'; both are methods that are extensively used in the solution of critical engineering problems.

Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#31

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/02/2009 6:16 PM

I have not found a single method that equals Ramajudan for all the criteria in post #1, but I have found some that I find interesting. What is distinct about these is that they are optimised for accuracy using drawing - and none of them would be particularly helpful if you were using numerical methods.

First family (roughly described "pour encourager Les Autres" (anyone know him):
These are extensions of the proposal in jim's post #6 (as first hinted in post #12).
The second in the family (post #6 being the first) uses the fact that each time we halve the angle the accuracy of the approximation improves by roughly a factor of four; this allows us to use weighted differences of successive approximations to obtain an improved set of approximations where each halving of the angles pair gives a result that improves by a factor 16x. The idea can be repeated on this second set of approximations to obtain a third set that improves 64x for each halving of angles.
If we combine this third set with the exterior polygon we can in principle cancel the 6th-order term, and produce a set that improves at a rate of 256x for each halving of the angles. However, I haven't checked whether the initial error is small enough to mean that we get a reduction in the total number of angles to be combined.
But hopefully this is enough of a hint that someone else will get there before me - so I'll leave this for another day.

The second family goes directly to the side or to the diagonal of the square - R.sqrt(pi). It is based on numerical approximations, but these are selected to avoid the difficulties of drawing very small circles (my not-recent experience is that this is rather tricky using a practical compass). To this end, the largest compass setting is less than 2.6.R, and the smallest is greater than R/8. The number of iterations is minimised by (compared with with linear approximations) by using quite unequal sides of right-angled triangles to generate the third side.
I will give one example, that produces to the diagonal of the square (nominal length = √(2.∏).R ≈ 2.506628274631.R). In what follows, all lengths are taken as multiples of R (omitted due to laziness):
Triangle1: sqrt((1+1/6)2-((1+1/5)/8)2) = 2.161468...
Triangle2: sqrt(12+12) = 1.414214...
Triangle3: sqrt(1.41421362+(2.161468/16)2) = 0.35516282746...
Triangle4: sqrt(1.52-0.35516282) = 1.4573567...
Triangle5: sqrt(2.52+(1.4573567/8)2) = 2.5066282738...
This is in no way a fundamental method, nor is it as compact as the best of Ramanujan's nor as elegant as any that he published. However, it is less subject to drawing error than any method that takes the geometric mean of two lengths. Indeed, it is hard to see how the drawing errors could be further reduced, as every stage divides the errors due to the previous stages; most importantly, triangle 5 divides the constructional errors derived from triangle 4 by a factor of more than 100.

Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#32

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/05/2009 11:53 AM

As it's nearly time for the official answer, and no-one has risen to the bait, here are some (slightly) more practical methods (than in post #6), but still based on chords

In post #6, Jim effectively used the approximation:
π/2 ~ a/2.sin(π/a)
Where in his case a was an integer (the number of sides of the regular inscribed polygon).

Taylor series expansion of pi gives this approximation as:
π/2 ~ a/2.[(π/a) - (π/a)3/3! + (π/a)5/5! - (π/a)7/7! + (π/a)9/9! - ...]
or (to give an idea of the error)
π/2 ~ π /2.[1 - (π/a)2/3! + (π/a)4/5! - (π/a)6/7! + (π/a)8/9! - ...] . . . (1)

Clearly, there is no problem with doubling tripling quadrupling (etc) the angle of the polygon. So we can obtain some improved estimates:

π/2 ~ a/2.[4.sin(π/a)/3 – sin(2.π/a)/6] eliminate the second order error term in equation (1) above.
This enables a polygon with 240-sides (1.5O) as the basis, compared with more than 32000 sides originally. Just 90 chords must be added/subtracted to produce π.r/2 with a theoretical error (absolute) of 3.07.10-9/2

We can re-apply the principle to eliminate the fourth-order error term:
π/2 ~ a/2.{4[4.sin(π/a)/3 – sin(2.π/a)/6]/3 - [4.sin(2.π/a)/6 – sin(4.π/a)/12]/3}
This allows us to use a polygon with just 48 sides as the basis. We need to add/subtract 26 full chords plus a third of the result from three chords to produce π.r/2 with a theoretical (absolute) error of 1.76.10-9/2

Theoretically, we could extend this to eliminate the sixth-order term, but we can see that the 8.π/a will inevitably be greater than unity, which limits any possible benefit. Smaller multiples (e.g. 1, 2, 3, 4) would doubtless be more useful in this regard – but the constructions become progressively more complex.
Alternatively, we could use the exterior polygon (side = r.tan(π/a)) to generate some of the segments.
These extensions do not appear worthwhile at the present level of precision – but they would come into their own beyond about 11 digits.

Although I describe the above equations as "Taylor series", they can also be accessed using basic algebra and similar triangles (this requires a degree of persistence, however). So – at least in principle - both the methods and an upper bound on the errors could in principle have been accessible to Euclid's contemporaries.

Author's comments:
Economical: modestly so
Resistance to constructional errors: modest
Historically accessible: probably

P.S. Other techniques needed (e.g. for the square root) are described elsewhere in this thread - e.g. by Jim and Randall

Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#37

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/06/2009 1:12 PM

Were it possible, I'd give a GA to JD's "official challenge solution".
Not only is it technically correct, it is relatively compact.

Perhaps it's an added attraction that it still leaves the way open for other ideas, as it was not (so far as I could see) in any way unique or fundamental.

Other notes: The use of 1/cos near the end will divide preceding errors by about 3, so the construction of the diagonal of the square (= (D+AB) ≈ √(2.pi)) will be quite accurate. (Curiously, post #31 uses the same technique at the end of the process, but is based there on the 2.5xR instead of on 0.5xR - this smaller angle in #31 reduces preceding errors by a factor around 6)

Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#38
In reply to #37

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/07/2009 4:44 AM

Perhaps JD could enter a reply with the single word "BOW" and at least two of us would award it a good answer.

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Off Topic (Score 5)
Guru
Engineering Fields - Marine Engineering - New Member

Join Date: May 2007
Location: Australia.
Posts: 850
Good Answers: 26
#39
In reply to #38

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/07/2009 4:56 AM

Thank you gentlemen, from two very, very worthy people.

Regards JD.

Off Topic (Score 5)
Guru

Join Date: Apr 2007
Posts: 3295
Good Answers: 56
#40
In reply to #39

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/07/2009 5:03 AM

Leaving the off-topic checked rather defeats the objective of Randall's request...
(But I've given it a GA anyway).

Off Topic (Score 5)
2
Guru
Engineering Fields - Marine Engineering - New Member

Join Date: May 2007
Location: Australia.
Posts: 850
Good Answers: 26
#41

Re: Square with area of circle: CR4 Challenge (09/29/09)

10/07/2009 5:40 AM

I'd like to thank those that have contributed to this challenge, particularly the remarks of Fyz ad Randall (BOW), and those that have put in some time working on the problem but did not not come up with a answer, frustrating isn't it?

Regards JD.

Good Answer (Score 2)
Power-User

Join Date: Mar 2009
Posts: 154
#42

Re: Square with area of circle: CR4 Challenge (09/29/09)

11/01/2009 2:07 AM

an very simple method - the excat accuracy is unknown at the moment:

draw rectangle axis as coordinate system

draw a circle of radius R with center in the coordinaqte-zero-point and an outer square with the same sidelength

draw a line from the circle-center to the edge of the outer square (45 degrees)

half the line from the circle-peripheral to the edge of the outer square

draw a 60 degrees line from the circle center into the same direction as the 45 degree line

draw a line from the halfed line (circle peripheral to the edge of the outer square) thru the crosspoint of the 60 degree line with the circle peripheral

the line on the coordinatesystem to the coordinate zero point is half the length of a square with (nearly) the area equal the circle with radius R

Guest
#43
In reply to #42

Re: Square with area of circle: CR4 Challenge (09/29/09)

11/01/2009 4:40 PM

I tried quite hard but could not be certain what these instructions meant.

"Outer square with same sidelength." Same sidelength as circle radius? Is this square centred on the origin? If so it's inside the circle. First guess it had one corner at the origin, and two of the sides coincide with coordinate axes. (This is the same as making the side of the square the same as the diameter)

But now we have a "45-degree line to the edge"... Perhaps you mean the corner?

If that's what you meant, you can use similar triangles and simple arithmetic to deduce the lengths of the side of your final square, and its area is 3.123445.R2, giving an error slightly exceeding 0.018.

Power-User

Join Date: Mar 2009
Posts: 154
#44
In reply to #43

Re: Square with area of circle: CR4 Challenge (09/29/09)

11/01/2009 11:58 PM

draw a square with the diameter D of the circle around the circle with sidelength's parallel to the axis of the coordinate systems.

I've some problems here to read the pages correctly, most times i have an error messages so i cannot read the comment complete.

Guest
#45
In reply to #44

Re: Square with area of circle: CR4 Challenge (09/29/09)

11/02/2009 9:36 AM

That's what I guessed. The only reasons for not believing that this was what you meant were that the error was completely outside the range requested in the challenge (given that there are sqrt(3)*(1+1/42) equally quick ways to obtain much more accurate answers), and the error calculation or this construction was so straightforward.

47 comments
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Comments rated to be Good Answers:

These comments received enough positive ratings to make them "good answers".

Comments rated to be "almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, rate them!
Copy to Clipboard

Users who posted comments:

BobD (1), dac1267 (1), Doorman (1), dovy (3), Guest (6), jdretired (3), jim35848 (3), passingtongreen (2), Physicist? (12), Randall (7), SlideRuler (1), soebfatehi (1), TVP45 (3), WilhelmHKoen (3)

Previous in Blog: Unusual Area: CR4 Challenge (09/22/09)   Next in Blog: Polar Ice: CR4 Newsletter Challenge (10/06/09)
You might be interested in: Computers, All Types, Notebook and Laptop Computers, Industrial Computers