WOLFRAM|DEMONSTRATIONS PROJECT

Rectangles Reasonably Close to a Given Area

​
target area
64
deviation range
6
max aspect ratio
2
3
4
5
cuboids
0
-1
1
2
-4
-4
6
6
In puzzles, architecture, real estate, and other applications, it is often useful to have a rectangle with a particular area and a reasonable aspect ratio. This Demonstration finds integer-sided rectangles close to a target area.
As an option, reasonable cuboids for a given volume can also be found.