How many rectangles fit in a triangle?

In summary, this method allows for the fitment of a maximum number of rectangles into a triangle, but requires 18 separate calculations.
  • #1
benbenny
42
0
Does anyone know how one could calculate the maximum number of whole rectangles that can fit into a triangle.

Say you know the length of the sides of the triangle (t1,t2,t3) and the of the sides of the rectangle (r1,r2).

Thanks.
 
Physics news on Phys.org
  • #2
What's the application? Are there any other restrictions that would make it easier?
 
  • #3
Ive come up with this so far. It only allows to fit the rectangles in portrait or landscape mode, not a combination of both, nor diagonally.

Any triangle can be made into two right triangles (I think).

A given right triangle has bases t1,t2, and hypotenuse t3.

The number of rectangles (r1,r2) that can fit in the first row in the triangle is

[tex] N = \downarrow \frac{[(t1-r1)\frac{t2}{t1}]}{r1} [/tex]

(down arrow denotes rounding down to nearest integer)

The total number of rectangles that can fit in the triangle is then:

[tex] N = \Sigma_{n=1} \downarrow \frac{[(t1-nr1)\frac{t2}{t1}]}{r1} [/tex]

where the sum is from n=1 until the outcome of the expression is zero (I don't know how to denote this mathematically).

This needs to be done twice, the second time you switch between r1 and r2, to find out if landscape or portrait offers the bigger solution.
 
  • #4
That'd be a nice way if you could prove that they will all be stacked in the same orientation as each other. And allow them to straddle t2.

It seems intuitive that every rectangle should have one side collinear with a side of the triangle or another rectangle, and should be slid up against a side of something. So maybe you can do it with a recursive algorithm that tries every possible position of each new rectangle being added - that won't be too many because there's only a finite number of sides for them to be parallel with, and only a couple of positions along those sides.
 
  • #5
What do you mean by "straddle t2"?

Thanks for the input!
 
  • #6
I mean one side of the rectangle is on each side of the perpendicular line (which I think you called t2) that cuts the triangle in two. It seems like your formulae require all rectangles to be butted up against this line.

By the way "floor" and "cieling" functions force rounding down/up. [tex]\left\lfloor 3.4 \right\rfloor \left\lceil 3.4 \right\rceil[/tex]
 
  • #7
Ok, so here is one way to do it that gets rid of the straddling assumption. But it does not get rid of the same orientation assumption.

If the triangle sides are a,b,c. The number of rectangles that can fit would be

[tex] \Sigma_{n=1} \downarrow\frac{d_{n}}{R_{2}} [/tex]

where

[tex] d_n = a - ( \frac{nR_1}{tan(arccos(\frac{-c^2 +a^2+b^2}{2ab}))}+ \frac{nR_1}{tan(arccos(\frac{-b^2 +a^2+c^2}{2ac}))}) [/tex]

Now you have to rotate a-->b b-->c c-->a carry out the calculation again, than rotate again and do it again. You also need to do it twice with R1<-->R2 for every rotation. In total this gives 18 calculations and the biggest figure is the max number of whole rectanlges that can fit.

Its not the most elegant way of doing it, but you can apply it in excel to get quick results.

I haven't tested it yet, so although I am pretty sure about the principle of it, there may be a math error.
 

1. How do you determine the number of rectangles that can fit in a triangle?

The number of rectangles that can fit in a triangle depends on the size and shape of the triangle. In general, a triangle can fit one rectangle that has the same base and height as the triangle itself. However, if the triangle has a right angle, it can fit an infinite number of rectangles by varying the length and width of the rectangles.

2. What is the formula for finding the number of rectangles that can fit in a triangle?

There is no specific formula for finding the number of rectangles that can fit in a triangle. It depends on the dimensions and angles of the triangle. In some cases, you may be able to use the formula for the area of a rectangle (length x width) to determine the number of rectangles that can fit.

3. Can any type of triangle fit multiple rectangles?

In most cases, a triangle can fit one rectangle that has the same base and height as the triangle itself. However, there are some special types of triangles, such as right triangles, that can fit an infinite number of rectangles by varying the length and width of the rectangles.

4. Are there any constraints on the size of the rectangles that can fit in a triangle?

The size of the rectangles that can fit in a triangle depends on the size and shape of the triangle. In general, a rectangle that has the same base and height as the triangle itself will fit perfectly. However, if the triangle has a right angle, there are no constraints on the size of the rectangles that can fit.

5. How can I visualize the number of rectangles that can fit in a triangle?

You can visualize the number of rectangles that can fit in a triangle by drawing the triangle and placing rectangles inside it. You can also use mathematical concepts, such as the area of the triangle and the area of the rectangles, to understand the number of rectangles that can fit in a triangle.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
14
Views
531
  • Differential Geometry
Replies
1
Views
1K
  • Topology and Analysis
Replies
3
Views
160
Replies
32
Views
897
Replies
2
Views
120
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Linear and Abstract Algebra
Replies
33
Views
792
  • General Math
Replies
1
Views
990
  • Precalculus Mathematics Homework Help
Replies
6
Views
573
Replies
1
Views
1K
Back
Top