Perl: the Markov chain saw | |
PerlMonks |
N circles around a circle.by BrowserUk (Patriarch) |
on Feb 20, 2017 at 02:41 UTC ( [id://1182323]=perlquestion: print w/replies, xml ) | Need Help?? |
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. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice.
Back to
Seekers of Perl Wisdom
|
|