Get Height and Width of squares in a square

954 Views Asked by At

I have a square of fixed height and width for example 100x100.

Additionally I have the number of sub-squares which should fit into this square in this exapmle 20 sub-squares.

How can I calculate the height and the width of each sub-square?

1

There are 1 best solutions below

3
On BEST ANSWER

From ctst we have $20x^2 = 100^2$ then $x^2=100^2/20$ and $x=(100^2/20)^{.5}$ to get the width x of each square. $x = 10*5^{.5}$

For rectangles we have $20x*y=100^2$ then $x*y = (100^2/20)$ any point on this curve will be a solution.