Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 ( [id://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

Replies are listed 'Best First'.
Re^2: Asked to put a square peg in a round hole, I would:
by syphilis (Archbishop) 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?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found