Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Asked to put a square peg in a round hole, I would:

by davies (Prior)
on Aug 03, 2018 at 11:06 UTC ( #1219799=note: print w/replies, xml ) Need Help??


in reply to Asked to put a square peg in a round hole, I would:

Measure (a) the diameter of the circle and (b) the diagonal of the square. If a >= b, it will go in. It won't fill the hole, but that wasn't the problem.

Regards,

John Davies

  • Comment on Re: Asked to put a square peg in a round hole, I would:

Replies are listed 'Best First'.
Re^2: Asked to put a square peg in a round hole, I would:
by syphilis (Bishop) on Aug 05, 2018 at 13:24 UTC
    Measure (a) the diameter of the circle and (b) the diagonal of the square. If a >= b, it will go in

    Actually, the square peg will fit through the circular hole so long as the length of the square's side is less than the hole's diameter ... though you might need to shorten the length of the peg.

    Cheers,
    Rob

      If the length of the peg is equal to the length of the square's side then it is a cube. If the length of the peg is equal to or less than the length of the square's side but greater than about half the length of the square's side then it is a block. If the length of the peg is much less than the length of the square's side and the length of the square's side is greater than the diameter of a can or bottle of beer then it is a coaster.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1219799]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2021-07-29 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?