Introduction

Regular multi-sided rooms have been used repeatedly in many historical and contemporary buildings either in simple residential buildings or multi-function complex projects. The Holy Dome of the Rock in Jerusalem (Elkhateeb 2012) (built between 687 and 691, Fig. 1a) is one of those famous regular octagonal buildings. Regular multi-sided shapes were also utilized on the level of city planning, as there are many examples of cities that have regular multi-sided shapes. The plan of the city of Palmanova (near Venice, Italy, constructed during the renaissance, Fig. 1b) is a good example of such a city (Wikipedia 2013).

Fig. 1
figure 1

Regular multi-sided shapes have many architectural applications. a, left Plan for the Holy Dome of the Rock. b, right Plan of the city of Palmanova near Venice

For the purposes of this part, the regular multi-sided right prisms are those prisms that have more than four sides. Thus, and according to the shape of their bases, they include a wide range of shapes, from pentagonal to circular. In the first part of this work (Elkhateeb 2014) assumptions and methodology were set out to mathematically analyze isosceles triangular right prisms in order to answer five questions:

  • How the angle θ (or θ and β) affects S?

  • When S becomes minimum (SMin)?

  • What is the ratio between walls surface area SW and S (SW/S = RW)?

  • When Ar numerically equals Per? and,

  • When S numerically equals V?

Following the same methodology and assumptions that were previously applied, this part investigates the case of the regular multi-sided right prisms.

Notations

In this part, the following terms mean:

Ar:

: Room floor area (m2)

h:

: The altitude of the triangle, see Fig. 2 (m)

Fig. 2
figure 2

Multi-sided shapes, the different variables. a, left Example for a pentagonal shape. b, right Example for an octagonal shape

HR :

: Room height, the height of the prism (m)

H Ro :

: The critical room height, the height that fulfills (S–V) equality (m)

n:

: Number of sides

Per:

: Perimeter (m)

S:

: Room total surface area (m2)

SMin :

: The minimum total surface area (m2)

SW :

: Walls total surface area (m2)

r:

: Radius (m)

r o :

: The critical radius, the radius that fulfills (Per–Ar) equality (m)

RW :

: Walls ratio, SW/S (Ratio)

R Wo :

: The critical walls ratio, the ratio between walls total surface area and total surface area when S is minimum (SMin) (Ratio)

V:

: Room volume (m3)

ω o :

: The critical ratio, the ratio between HR and r when S is minimum (SMin) (Ratio)

The other terms will be illustrated in figures according to each case as required.

Room Assumptions

The term “regular” as will be used hereafter means that the shape under discussion must fulfill two conditions (see Fig. 2):

  • To be contained in a circle.

  • Its central angle ψ is constant and equal to 360/n.

Through this part, it is assumed that the angle θ, Ar and V are the independent variables whereas Per and S are the dependent ones. Figure 2 shows the terms: θ, ψ, h, L and r in the regular multi-sided shapes.

The Mathematical Relationships of Multi-sided Shapes

The regular multi-sided shapes can be identified knowing both Ar and n. This section derives the main mathematical functions among the different variables of such shapes. These functions will be utilized later to determine SMin and calculate the equality conditions. From the first principles, it can be proved that:

$$ \varvec{\theta}= \frac{180}{\varvec{n}}\; (\varvec{degrees}) $$
(1)
$$ \varvec{L} = 2\varvec{r }\sin\varvec{\theta}. $$
(2)

Also

$$ \varvec{h} = \varvec{r cos\theta }. $$
(3)

And

$$ \varvec{r} = \sqrt {\frac{{\varvec{Ar}}}{{\varvec{n }\sin\varvec{\theta}\cos\varvec{\theta}}}} . $$
(4)

The perimeter Per of the regular multi-sided shapes can be calculated as:

$$ \varvec{Per} = \varvec{n } \times \varvec{L} $$
(5)

By substitution for L according to Eq. 2, Eq. 5 can be rewritten as:

$$ \varvec{Per} = 2\varvec{nr }\sin\varvec{\theta} $$
(6)

The Area of the regular multi-sided shapes can be calculated as:

$$ \varvec{Ar} = \frac{{\varvec{n} \times \varvec{L} \times \varvec{h}}}{2} $$
(7)

By substitution for L and h according to Eqs. 2 and 3 respectively, Eq. 7 can be rewritten as:

$$ \varvec{Ar} = \varvec{nr}^{2} \varvec{ }\sin\varvec{\theta}\cos \varvec{\theta }. $$
(8)

In the third dimension, a regular multi-sided shape can be extruded to form a right prism with a height HR. In this case, its volume V = (HR × Ar) can be calculated from:

$$ \varvec{V} = \varvec{ H}_{\varvec{R}} \varvec{ } \times \varvec{nr}^{2} \varvec{ }\sin\varvec{\theta}\cos\varvec{\theta} $$
(9)

Thus

$$ \varvec{H}_{\varvec{R}} = \frac{\varvec{V}}{{\varvec{nr}^{2} \varvec{ }\sin\varvec{\theta}\cos\varvec{\theta}}}. $$
(10)

In this part, the ratio ω will be defined as:

$$ \varvec{\omega}= \varvec{ }\frac{{\varvec{H}_{\varvec{R}} }}{\varvec{r}}. $$
(11)

The total surface area S of a right prism in this case can be calculated as:

$$ \varvec{S} = 2\varvec{Ar} + \left( {\varvec{Per} \times \varvec{H}_{\varvec{R}} } \right) $$
(12)

Given the values of Per (Eq. 6), Ar (Eq. 8), and HR (Eq. 10) as a function of θ, Eq. 12 can be rewritten as:

$$ \varvec{S} = \varvec{ }2\varvec{nr }\sin \varvec{\theta }\,(\varvec{H}_{\varvec{R}} + \varvec{r }\cos\varvec{\theta}) $$
(13)

By substitution for HR according to Eq. 10, Eq. 13 will be:

$$ \varvec{S} = \varvec{ }2\varvec{nr }\sin\varvec{\theta}\,\varvec{ }\left( {\frac{\varvec{V}}{{\varvec{nr}^{2} \varvec{ }\sin\varvec{\theta}\cos\varvec{\theta}}} + \varvec{r }\cos\varvec{\theta}} \right). $$
(14)

Remark 1: Effect of θ on S

In multi-sided shapes, the numerical solution of Eq. 13 shows that S is an increasing function of θ (see Fig. 3), thus it is a decreasing function of n according to Eq. 1. Figure 3 is a graphical representation for Eq. 13. As can be concluded from this figure, the function reaches its minimum value when θ → 0°.

Fig. 3
figure 3

The relationship between θ and S according to Eq. 13

Remark 2: the Minimum Total Surface Area, SMin

Following the same approach that was previously applied in triangular rooms, two cases will be considered here:

  • Case of constant θ, where both Ar and HR are variables. Or;

  • Case of variable θ, where both Ar and HR are constants.

Case I, Constant θ, Variable Ar and HR

In this case, among the different multi-sided rooms that have the same θ and V, SMin occurs when the first derivative of Eq. 14 equals zero, i.e.

$$ \frac{{\varvec{dS}}}{{\varvec{dr}}} = 4\varvec{nr }\sin\varvec{\theta}\cos\varvec{\theta}- \frac{{2\varvec{V}}}{{\varvec{r}^{2} \cos\varvec{\theta}}} = 0 $$
(15)

By Substitution for V according to Eq. 9, and applying the rules of algebra, Eq. 15 can be rewritten as:

$$ \varvec{H}_{\varvec{R}} = 2\varvec{r}\cos\varvec{\theta} $$
(16)

Thus, the critical ratio ω o (see Sect. “Notations”) can be calculated from Eq.16 as:

$$ \varvec{\omega}_{\varvec{o}} = \varvec{ }2\cos\varvec{\theta}. $$
(17)

As can be concluded from Eq. 17, ω o is a function of θ (consequently n). Thus, for every n (i.e. for every regular multi-sided right prism) there is ω o that fulfills SMin. Eq. 17 also tells that ω o is a decreasing function of θ, therefore, it is an increasing function of n, see Fig. 4. When n reaches , then θ → 0°, consequently, ω o  = 2, this is the case of a circle. To determine room dimensions that fulfill SMin in such prisms:

Fig. 4
figure 4

Values of ω o in the range 5 ≤ n ≤ 20 according to Eq. 17

  • Determine both n and V;

  • Calculate θ by applying Eq. 1;

  • Calculate ω o by applying Eq. 17;

  • Apply Eq. 10 to get r;

  • Apply Eq. 17 again to get HR;

  • Utilize Eqs. 2 and 4, respectively to get L and Ar.

It is worth mentioning in this context that Eq. 17 also applies in the two special cases of equilateral triangle (θ = 60°) and square (θ = 45°). Both shapes can be considered regular multi-sided shapes according to the above definition of this term (see Sect. “Room Assumptions”). If r in Eq. 16 was replaced by its equivalent value of h (r = 2/3 h in equilateral triangle, and r = h/2 in square), then Eq. 17 will yield ω o according to Eqs. 14 or 15 (Part I) and Eq. 14 (Part II) (Elkhateeb and Elkhateeb 2014).

Similar to the cases of triangular and quadratic right prisms, the two relationships (HR–S) and (Ar–S) depend on ω o which divides these functions into two zones (see Figs. 5 and 6):

Fig. 5
figure 5

The relationship of HR to S (case of pentagon, n = 5)

Fig. 6
figure 6

The relationship of Ar to S (case of pentagon, n = 5)

  • Zone [a]: where ω < ω o . In this zone, S is a decreasing function of HR (see Fig. 5) and an increasing function of Ar (see Fig. 6), note that the location of the zones is reversed in Fig. 6. Thus, any increase in room height will decrease its total surface area.

  • Zone [b]: where ω > ω o . In this zone, S is an increasing function of HR and a decreasing function of Ar. This means that the increase in HR will increase S.

Case II, Variable θ, Constant Ar and HR

In this case, the perimeter will control the value of S according to Eq. 12 as long as the other three parameters V, Ar and HR are constants in prisms under consideration. In this case, S reaches its minimum value when the first derivative of Eq. 6 equals zero after replacing both n and r by their equivalent values according to Eqs. 1 and 4, respectively, thus:

$$ \frac{{\varvec{dPer}}}{{\varvec{d\theta }}} = \frac{1}{2}\sqrt {180\varvec{ Ar}} \sqrt {\frac{{\sin\varvec{\theta}}}{{\varvec{\theta }\cos\varvec{\theta}}}} \left( {\frac{{\varvec{\theta cos}^{2}\varvec{\theta}- \varvec{sin\theta }( -\varvec{\theta}\sin\varvec{\theta}+ \cos\varvec{\theta})}}{{\varvec{\theta}^{2} \cos^{2}\varvec{\theta}}}} \right) = 0 $$
(18)

This leads to:

$$ \varvec{\theta}= \sin\varvec{\theta}\cos\varvec{\theta}. $$
(19)

Eq. 19 fulfills only if θ equals 0. This result completely agrees with the mathematical axiom that among the different regular shapes that have the same area, the circle (n = ) possesses the minimum perimeter. As a result, among the different regular multi-sided right prisms, a cylinder has the minimum total surface area. Another proof to this result is that Per is an increasing function of θ according to Eq. 6 (consequently, a decreasing function of n according to Eq. 1), thus Per is a decreasing function of n; accordingly S is a decreasing function of n (see Figs. 3 and 9).

Remark 3: Walls Ratio RW

In regular multi-sided right prisms, RW can be mathematically defined as:

$$ \varvec{R}_{\varvec{W}} = \frac{{\varvec{Per} \times \varvec{H}_{\varvec{R}} }}{{2\varvec{Ar} + \varvec{Per} \times \varvec{H}_{\varvec{R}} }} $$
(20)

By substitution for Per and Ar from Eqs. 6 and 8 respectively, Eq. 20 can be rewritten as:

$$ \varvec{R}_{\varvec{W}} = \frac{{\varvec{H}_{\varvec{R}} }}{{\varvec{H}_{\varvec{R}} + \varvec{r}\cos\varvec{\theta}}} . $$
(21)

The relationship between RW and θ resembles the relationship between S and θ (see Fig. 3), thus it is an increasing function of θ, consequently, a decreasing function of n. RW reaches its minimum value when θ → 0° (circular shapes). To calculate R Wo , the conditions for ω o must be applied, thus, Eq. 21 can be rewritten as:

$$ \varvec{R}_{{\varvec{Wo}}} = \frac{{2\varvec{r}\cos\varvec{\theta}}}{{2\varvec{r}\cos\varvec{\theta}+ \varvec{r}\cos\varvec{\theta}}} $$
(22)

This leads to:

$$ \varvec{R}_{{\varvec{Wo}}} = \frac{2}{3} = 0.6667. $$
(23)

Consequently, the critical walls ratio R Wo (see Sect. “Notations”) in regular multi-sided right prisms is also constant for any θ and equals 2/3.

Remark 4: Case of Equality

This section calculates two cases of numerical equality in regular multi-sided prisms. The first considers the numerical equality between Per and Ar. The last considers the numerical equality between S and V.

Case I, Equality of Per and Ar

In regular multi-sided rooms, and according to Eqs. 6 and 8, the numerical equality between Per and Ar occurs when:

$$ 2\varvec{nr}_{\varvec{o}} \varvec{ }\sin\varvec{\theta}= \varvec{ nr}_{\varvec{o}}^{2} \varvec{ }\sin\varvec{\theta}\cos\varvec{\theta} $$
(24)

By applying the rules of algebra and trigonometry, the critical radius r o (see Sect. “Notations”) can be calculated from Eq. 24 as:

$$ \varvec{r}_{\varvec{o}} = \varvec{ }\frac{2}{{\cos\varvec{\theta}}}. $$
(25)

In the special case where n → ∞ (i.e. circular shape), θ → 0. As cos 0 = 1, thus, r o  = 2 m.

Similar to ω o , the numerical equality between Per and Ar also depends on θ according to Eq. 25. The values of r o were plotted in Fig. 7. As can be concluded from this figure, the relationship between θ and r o is similar to the relationship between θ and S (see Fig. 3), where r o is an increasing function of θ (consequently a decreasing function of n).

Fig. 7
figure 7

Values of r o for the common regular multi-sided shapes according to Eq. 25

Case II, Equality of S and V

According to Eqs. 9 and 13, such numerical equality occurs when:

$$ 2\varvec{nr }\sin\varvec{\theta}(\varvec{H}_{{\varvec{Ro}}} + \varvec{r}\cos\varvec{\theta}) = \varvec{ nr}^{2} \sin\varvec{\theta}\cos \varvec{\theta H}_{{\varvec{Ro}}} \varvec{ } $$
(26)

By applying the rules of algebra, Eq. 26 will be:

$$ \varvec{H}_{{\varvec{Ro}}} = \varvec{ }\frac{{2\varvec{r}\cos\varvec{\theta}}}{{\varvec{r}\cos\varvec{\theta}- 2}}. $$
(27)

Thus, in regular multi-sided right prisms with given θ and Ar, the numerical equality between S and V occurs only when Eq. 27 fulfills. This can be calculated in the following sequence:

  • Determine both θ (or n) and Ar;

  • Apply Eq. 4 to get r, then;

  • Substitute in Eq. 27 to get the critical room height H Ro (see Sect. “Notations”).

In the special case where n → ∞ (i.e. a cylinder), θ → 0. As cos 0 = 1, thus, Eq. 29 will be:

$$ \varvec{H}_{{\varvec{Ro}}} = \varvec{ }\frac{{2\varvec{r}}}{{\varvec{r} - 2}} $$
(28)

Similar to triangular and quadratic rooms (see Parts I and II), the minus sign (−) in the denominator of Eqs. 27 and 28 indicates that for every θ there is a minimum r under which this numerical equality will never exist. This occurs when H Ro tends to , i.e., when Ar equals Per according to Eq. 25. Figure 8 represents the relationship between Ar and H Ro calculated from Eq. 27 for a regular pentagonal right prism (θ = 36°). As can be seen from the figure, in the acceptable range, H Ro is a decreasing function of Ar. In this range, the function can be divided into two main zones, zone of rapid decay (when Ar tends to be equal to Per) and zone of slow decay (when Ar is far from this equality).

Fig. 8
figure 8

The relationship of Ar to H Ro when S = V (case of n = 5, θ = 36°)

Generalization of Results, Group of Regular Traditional Forms

The right prism that has regular bases (from the isosceles triangle to the circle) constitutes the core of the first three parts of this work (see Elkhateeb 2014; Elkhateeb and Elkhateeb 2014). It was assumed that the volume of the prism V is constant. Through this work:

  • A complete set of mathematical functions that relates Per, Ar and S to the angle θ (or θ and β) was derived.

  • The effect of θ (or θ and β) on S was investigated.

  • The minimum total surface area SMin of the prism and walls ratio RW were calculated.

  • The conditions to fulfill two cases of numerical equality (Per–Ar) and (S–V) were calculated.

When θ is variable, in triangular and rectangular rooms that have the same area, S is a decreasing function of θ until a specific θ where this relationship reverses and S becomes an increasing function of θ. This specific θ = 60° in triangular shapes (i.e. equilateral triangle) and 45° in rectangular shapes (i.e. square). The same fact also applies in trapezoidal shapes but the angle at which the function reverses its direction depends on both θ and β. In regular multi-sided rooms, S is an increasing function of θ (accordingly a decreasing function of n).

In all of the examined shapes (from triangle to circle), the mathematical analysis indicates that S is a decreasing function of n. This means that a triangular right prism (n = 3) possesses the maximum S in comparison with a cylinder (n = ∞) that has the minimum S assuming that both have the same Ar and V (see Fig. 9). This can be clarified from the fact that when θ is variable and Ar is constant, the perimeter becomes the main variable that controls S. As Per is a decreasing function of n (i.e. a triangle possesses the maximum Per, whereas a circle possesses the minimum Per), thus S will be also a decreasing function of n. It should be mentioned here that the variation in S as a function of n (ds/dn) becomes limited at the higher values of n (n ≥ 10) as can be seen in Fig. 9.

Fig. 9
figure 9

The relationship of n to S

In trapezoidal shapes, the analysis indicates that Per is a decreasing function of both θ and β. This can be expressed mathematically as:

$$ \varvec{Per}\; \propto \;\varvec{ }\frac{1}{\varvec{\beta}}\,(\varvec{when }\,\varvec{\theta}\,\varvec{is }\,\varvec{constant}) $$
(29)
$$ \varvec{Per}\; \propto \;\varvec{ }\frac{1}{\varvec{\theta}}\,\left( {\varvec{when }\,\varvec{\beta}\,\varvec{ is}\,\varvec{ constant}} \right). $$
(30)

When θ is constant (so, Ar is variable) and in prisms under consideration, the mathematical analysis proves that there is a critical ratio ω o that makes the total surface area of a room reaches its minimum value. This ω o depends on the shape of the base and is a function of θ (or θ and β in trapezoidal shapes). When ω < ω o , S becomes a decreasing function of HR and an increasing function of Ar. This means that any increase in room height will decrease its total surface area. On the contrary, when ω > ω o , S becomes an increasing function of HR and a decreasing function of Ar. This means that an increase in HR will increase S.

When θ is variable, the mathematical analysis indicates that walls ratio RW of the prisms under discussion is also a function of θ (or θ and β in trapezoid). This relationship resembles the relationship (θ–S). Hence, in triangular and quadratic prisms, RW is a decreasing function of θ until a specific θ (θ = 60° in triangle and 45° in rectangle) then the function reverses and RW becomes an increasing function of θ. In regular multi-sided rooms, RW is an increasing function of θ (accordingly a decreasing function of n).

When S reaches its minimum value, the mathematical analysis proves that R Wo is constant in all prisms under consideration and is equal to 2/3. Figures 10 and 11 summarize the findings of this work (in Parts I, II and III) for both S and RW.

Fig. 10
figure 10

Cases and mathematical characteristics of S

Fig. 11
figure 11

Cases and mathematical characteristics of RW

The numerical equality between Per and Ar fulfills when the critical altitude/diagonal or radius (h o or r o ) fulfills. Similar to ω o , h o (or r o ) is a function of θ (or θ and β in trapezoid). In the case of circles, r o  = 2 m.

The numerical equality between S and V also fulfills when the critical room height H Ro fulfills. In the acceptable range of the derived formulae to calculate this equality, H Ro is a decreasing function of Ar. In the prisms under consideration, the mathematical analysis indicates that for every θ (or θ and β in trapezoid) there is a minimum Ar under which this equality will never exist. This occurs when H Ro tends to , i.e., when Ar equals Per.

Conclusions

Following the same methodology, assumptions and rules that were applied previously in Parts I and II, this part examines the cases of the regular multi-sided right prisms. According to the shape of their bases, such prisms include shapes from pentagon to circle. The first remark examines the effect of θ on S. In the second remark, the minimum total surface area SMin for the prisms under discussion was calculated in two cases, the case of constant θ and the case of variable θ. In the first case, the critical ratio ω o was calculated. Results showed that ω o depends entirely on θ. The values of ω o were calculated and presented. In the second case, where θ is variable, results showed that SMin occurs when θ → 0 (i.e. cylindrical rooms). The third remark calculates the ratio RW, results showed that RW reaches its minimum value in circular rooms (n = ∞). Results also showed that the critical walls ratio R Wo is constant for any n and is equal to 2/3. The last remark investigates the conditions for the numerical equality either between Per and Ar or S and V. In the first case, the critical radius r o that fulfills Per–Ar equality was calculated. Results showed that r o depends entirely on θ. In the second case, the critical room height H Ro that fulfills S–V equality was calculated. Results also indicated that for every θ there is a minimum r under which this equality will never exist; this corresponds to r o (i.e. Ar = Per). Finally, the results of the first group (regular right prisms) were generalized and discussed.