Which is a closer fit, a square peg in a round hole or a round peg in a square hole.
In [8]:
from math import pi, sqrt
In [27]:
inner_max_dim = 1
In [28]:
inner_circle_area = pi * (inner_max_dim/2)**2
outer_square_area = inner_max_dim ** 2
inner_circle_area / outer_square_area
Out[28]:
In [29]:
inner_square_area = (inner_max_dim/sqrt(2))**2
outer_circle_area = pi * (inner_max_dim/2)**2
inner_square_area / outer_circle_area
Out[29]: