Equation of a rectangle's radius

  • Thread starter Thread starter Samzor123
  • Start date Start date
  • Tags Tags
    Radius
AI Thread Summary
The discussion centers on the formula for calculating the "radius" of a rectangle, defined as the distance from its center to the perimeter at a given angle. The initial formula presented, involving the width and height of the rectangle, is acknowledged as clever but contains errors, particularly when tested with specific angles. Participants elaborate on the need for a piecewise solution to account for different scenarios where the radius intersects the rectangle's edges. A more accurate method is proposed, which involves determining angles and using trigonometric functions to find the correct radius based on the rectangle's dimensions. The conversation highlights the complexity of representing rectangles in polar coordinates and the importance of precise calculations.
Samzor123
Messages
1
Reaction score
0
A few days ago I got really excited when I found the equation for a retangles radius (distance from its center to its perimeter given an angle)

I have no idea if this is something very simple and stupid but my math teacher said it was impressive, I'm still in high school

It's like this:
(w/2)*sqrt(cos^2(theta)) + (h/2)*sqrt(sin^2(theta))

(Or my attempt at latex):
\frac{w}{2}\sqrt{cos^{2}(\theta)} + \frac{h}{2}\sqrt{sin^{2}(\theta)}

gives the length of the line from the center of a rectangle (width w, height h) to its perimeter at angle of theta.

I graphed it also with x = theta (radians), for a rectangle of width 1 and height 1:
http://dl.dropbox.com/u/1828729/rr/graph.png (it's a big image)

I needed to share this, excuse me if it's ridiculously simple.
 
Last edited by a moderator:
Mathematics news on Phys.org
That's NOT "ridiculously simple", it is, in fact, very clever.
 
Basically what you have done is a polar coordinate construction of rectangle that's centered at origin It's a quite more complicated way to represent rectangles but nonetheless interesting.

There is an error though, you could try plugging in \pi/6 for the formula and you get the wrong answer. Your answer is close to

I found a paper in which I had worked on the same problem. I didn't generalize it for rectangles of different sizes but that would be easy enough to do so. The solution is a piecewise one since I didn't bother to try to combine these. You can view the attachment to see the graph of solution for square (with side length 2). As you can see how it involves reciprocal of sine and cosine instead of just sine and cosine.
 

Attachments

  • polar.JPG
    polar.JPG
    56.5 KB · Views: 754
This equation does not work.

Consider an angle theta, such that 0^\circ \le \theta \le 90^\circ[/tex]<br /> <br /> The &quot;radius&quot; of a rectangle with this angle would lie in the upper right quadrant of the rectangle.<br /> <br /> Let&#039;s assume \theta = 30^\circ[/tex]&lt;br /&gt; This would result in one of three different situations:&lt;br /&gt; 1) the radius will intersect the upper right vertex of the rectangle&lt;br /&gt; 2) the radius will intersect the top of the rectangle&lt;br /&gt; 3) the radius will intersect the right side of the rectangle&lt;br /&gt; &lt;br /&gt; Now, let&amp;#039;s assume our radius is 2 units long.&lt;br /&gt; &lt;br /&gt; With an angle of 30^\circ[/tex], this means we have a 30-60-90 triangle with a height of 1 unit and a base of \sqrt{3}[/tex] units.&amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; I&amp;amp;amp;#039;ve drawn this triangle inside three different rectangles (each representing the upper right quadrant of the &amp;amp;amp;quot;whole&amp;amp;amp;quot; rectangle) using random values for situations #2 &amp;amp;amp;amp; #3.&amp;amp;lt;br /&amp;amp;gt; (See attachment)&amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; The dimension of the &amp;amp;amp;quot;whole&amp;amp;amp;quot; rectangles are as such:&amp;amp;lt;br /&amp;amp;gt; 1) h = 2, w = 2\sqrt{3}[/tex]&amp;amp;amp;lt;br /&amp;amp;amp;gt; 2) h = 2, w = 4&amp;amp;amp;lt;br /&amp;amp;amp;gt; &amp;amp;amp;lt;br /&amp;amp;amp;gt; 3) h = 2.4, w = 2\sqrt{3}[/tex]&amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;gt; &amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;gt; &amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;gt; For situation #2, it&amp;amp;amp;amp;amp;#039;s easy to see that this triangle will fit any upper right quadrant with a height of 1 unit and a width greater than or equal to \sqrt{3}[/tex]&amp;amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;amp;gt; &amp;amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;amp;gt; So, in the case where the radius at a given angle intersects the top of the rectangle, you can increase the width of the rectangle without affecting the length of the radius. And, since w is increasing, the value of your equation is increasing, yet the length of the radius remains the same.
 

Attachments

  • Lines-Layout2a.PNG
    Lines-Layout2a.PNG
    4.9 KB · Views: 712
Since no one addressed this problem, I'll give my solution...


In order to find the length of the line segment from the center of a rectangle to it's perimeter (or, what the OP calls the "radius" of a rectangle), given the angle of the line segment (\theta[/tex]) and the rectangle&#039;s dimensions (H and W), you must first determine whether the line segment intersects either the top or bottom (one of the widths), or one of the sides.<br /> <br /> <br /> To simplify the problem, I find it easier to find a similar angle in the first quadrant. That is, an angle \beta[/tex] such that 0^\circ \le \beta \le 90^\circ[/tex] which intersects the rectangle in the same way as the original angle \theta[/tex].&amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; To do this, I use&amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; \beta = \tan^{-1} \left| \tan(\theta) \right|&amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; Next, determine the angle of the diagonal from the rectangle&amp;amp;amp;#039;s center to it&amp;amp;amp;#039;s upper-right vertex:&amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; \phi = \tan^{-1} \left( \frac{H}{L} \right)&amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; &amp;amp;lt;br /&amp;amp;gt; Finally, compare \beta[/tex] to \phi[/tex] and use the appropriate formula to determine the length of the &amp;amp;amp;amp;amp;quot;radius&amp;amp;amp;amp;amp;quot; R:&amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;gt; &amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;gt; If \beta \ge \phi[/tex], then R = H/(2 \sin \beta)[/tex]&amp;amp;amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;amp;amp;gt; &amp;amp;amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;amp;amp;gt; If \beta &amp;amp;amp;amp;amp;amp;amp;amp;lt; \phi[/tex], then R = W/(2 \cos \beta)[/tex]
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

Back
Top