News for hackers. Stuff that matters.
Re:Perfect Circle by hinkley on Friday January 06, 2023 @06:39PM (#34282986)
Octagons are great fun to draw on graph paper. They're just a truncated square.
Re:Perfect Circle by madcaptenor on Friday January 06, 2023 @06:52PM (#34283135)
They are! But the octagons you draw that way aren’t regular (basically because sqrt(2) is irrational)
Re:Perfect Circle by hinkley on Friday January 06, 2023 @07:19PM (#34283388)
You can get pretty close with a pencil and a ruler though, if you have the right diameter of mechanical pencil. If you place the ruler dead on the corners of the squares and draw the line offset that tiny little bit, the error is barely perceptible without magnification.
Re:Perfect Circle by yarg on Friday January 06, 2023 @07:50PM (#34283656)
Throw a compass into the mix and you'll get close enough.

But you like, fall off the grid man.

Re:Perfect Circle by hinkley on Friday January 06, 2023 @07:57PM (#34283736)
Are you trying to square a circle? We don't tolerate that witchcraft around these parts. Now git.
Re:Perfect Circle by yarg on Friday January 06, 2023 @08:57PM (#34284205)
No - you can't square the circle, but you can get the square-root of 2.

Choose a corner and truncate, measure the edge length using a compass, and use that to draw the rest of the owl.

You can do it, but you end up with horizontal and vertical edges that are misaligned with the grid.

And I saw the opportunity to make a bad joke.

Re:Perfect Circle by whatshisface on Friday January 06, 2023 @06:53PM (#34283136)
If you draw the diagonal sides as the diagonals of squares, they will have the square root of two times the length of the vertical or horizontal sides.
Re:Perfect Circle by hinkley on Friday January 06, 2023 @07:11PM (#34283298)
Fair enough. But you can get pretty close if you draw a 10x10 with 4 squares on the sides parallel to the graph. Or 5x5 with 3 on each side. The former is 6% over and the latter 6% under. And if you go juust a hair outside of the lines you're dead on. Such as a pencil tip's width off of the ruler.

I just worked that out with a calculator, but I'm fairly sure I worked that out empirically while bored in math class one year. My very wise teacher put me and the other bored kid way to the opposite side of the classroom from where his chalkboard was and looked the other way when we played 'squares' in class, safely out of the peripheral vision of any of the other kids. Probably the only time I ever dared 'pass notes' in class.

Re:Perfect Circle by yarg on Friday January 06, 2023 @07:46PM (#34283625)
Sure, but if you want an octagon of a specific edge length then that won't help you.

Or if you want the largest octagon that fits in a given circle (octagon of a given radius).