BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
Perl content: I will be writing a perl script to perform the calculations for any given inner circle size.
Starting with a circle of a supplied size, I want to arrange a given number (usually smaller) circles around the periphery of the given circle such that they all touch central circle and two of the smaller circles either side. Anyone know or have pointers to a formula?
Eg. Given an inner circle of 100 units, and the desire to arrange 8 circles around its periphery, what diameter do the 8 circles need to be so that they just touch the inner circle and each other?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: N circles around a circle.
by tybalt89 (Monsignor) on Feb 20, 2017 at 03:20 UTC | |
by pryrt (Abbot) on Feb 20, 2017 at 14:04 UTC | |
by BrowserUk (Patriarch) on Feb 20, 2017 at 05:56 UTC | |
|
Re: N circles around a circle.
by choroba (Cardinal) on Feb 20, 2017 at 03:23 UTC |