Areas of the Flag

From Robert Banks, Slicing Pizzas, Racing Turtles, and Further Adventures in Applied Mathematics [Banks02].

This project is simple: it does not use loops, if-statements or any data structures. This exercise focuses on expressions and assignment statements.

Facts about the American flag. The standard dimension is the width (or hoist). This is the basic unit that all others are multiplied by. A flag that is 30 inches wide will simply have 30 inches multiplied by all of the other measurements.

  • Width (or hoist) W_f=1.0
  • Length (or fly) L_f=1.9 \times W_f
  • Width of union (or canton) W_u=\frac{7}{13} \times W_f
  • Length of union L_u=0.76 \times W_f
  • Radius of a star R=0.0308 \times W_f

These are other facts; they are counts, not measurements.

  • Number of red stripes S_r=7
  • Number of white stripes S_w=6
  • Number white stars N_s=50
  • Width of a stripe W_s=\frac{1}{S_r+S_w} \times W_f

Basic Red, White and Blue

Red Area. There are 4 red stripes which abut the blue field and 3 red stripes run the full length of the flag.

We can compute the area of the red, since it is 4 short rectangles and 3 long rectangles. The short rectangle areas are the width of a stripe (W_s) times the whole length (length of the fly, L_f) less the width of the blue union (W_u). The long rectangle areas are simply the width of the stripe (W_s) times the length of the fly (L_f).

Red = 4 \times W_s \times (L_f-L_u) + 3 \times W_s \times L_f.

White Area. There are 3 white stripes which abut the blue field, 3 whie stripes run the full length of the flag, plus there are the 50 stars.

We can compute the basic area of the white using a similar analysis as area of the red, and adding in the areas of the stars, 50S. We’ll return to the area of the stars, last.

White = 3 \times W_s \times (L_f-L_u) + 3 \times W_s \times L_f + 50S.

Blue Area. The blue area is the area of the union, less the area of the stars, 50S.

Blue = (L_u-W_u) - 50S.

The Stars

Area of the Stars. A 5-sided star (pentagram) can be analyzed as 5 kites of 2 triangles. The area of each kite, K, is computed as follows.

../_images/kite-star.png

The inner angles of all five kites fill the inside of the pentagram, and the angles must sum to 360°, therefore each inner angle is \frac{360}{5} = 72.

Angles of any triangle sum to 180°. The lower triangle is symmetric, therefore, the other two angles must sum to 180. The lower triangle has two side angles of (180-72)/2 = 54.

We see that straight lines contain an outer triangle and two inner triangles. We know the inner triangles add to 54+54=108; a straight line is 180. Therefore, the outer triangle has two 72° corners and a 36° peak. The area of the two triangles can be computed from these two angles.

a=36

b=72

Recall that the radius of a star, R is 0.0308 \times W_f.

Here’s one version of the area of the kite.

K = \frac{\sin{\frac{a}{2}} \times \sin{\frac{b}{2}}}{\frac{1}{2} \times \sin(a+b)} \times R^2

Here’s the other version of the area of the kite.

K = \frac{ \sin{\frac{b}{2}} }{ \phi^2 } \times R^2

Note that the math library math.sin() and math.cos() functions operate in radians, not degrees. The conversion rule is \pi \text{ radians} = 180 \text{ degrees}. Therefore, we often see something like \sin ( a \times \pi / 180 ) for an angle, a, in degrees.

The Golden Ratio is \phi = \frac{1+\sqrt{5}}{2} (about 1.61803).

The total area of a star is

S=5 \times K

Given a specific width of a flag (in feet), we can compute the actual areas of each color.

Check Your Results. Blue is 18.73% of the total area.

Table Of Contents

Previous topic

Architecture: Clients, Servers, the Internet and the World Wide Web

Next topic

Bowling Scores

This Page