by ynfnehf · 3y ago · 0 comments
100% perfect circle is a pure math thing and can't be achieved with drawing in any way.
Sure, but good luck pulling of a perfect octagon either, given the limitations of pen and paper.
And there's a perfectly good approximation that'll very quickly produce a theoretical heptagon with error margins less than the thickness of a pencil.
1/7 ~= 1/8 + 1/64 + 1/512 + 1/4096
(1/n = sum(1...infinity) of 1/((n + 1) ^ i)
(A perfect heptagon requires infinitely many steps.)
%!PS-Adobe-3.0 EPSF-3.0
%%DocumentMedia: a4 595 842 80 () ()
newpath
300 500 moveto
/poly {
/side exch def
/angle 360 side div def
side {
angle rotate
720 side div 0 rlineto
} repeat
stroke
closepath
} def
7 poly
showpage
Save it as figure.ps. Also, you can try "8 poly", or "1000 poly"
above "showpage".Or if you want the largest octagon that fits in a given circle (octagon of a given radius).
This bookmarklet also "only" gets 99.9%