\text{Postup

3. \; \text{ Hranol }H^*=ABC...;\text{ pre výšku zadajte: }k* AB

N = 4 (slider from 1 to 6, step 1)
k = 1 (slider from 0.5 to 1.5, step 0.1)
text1: "\text{Pravidelný }" + (LaTeX[N]) + "\text{-boký hranol }ABC... \text{, v ktorom výška }v=\left| AD \right| =" + (LaTeX[k]) + " \left| AB \right| ."
A = (4, -4, 0)
B = (4, 4, 0)
a1: x(A)
a2: y(A)
b1: x(B)
b2: y(B)
text3: "1. \; \text{Zvolíme } A(" + (LaTeX[a1]) + "," + (LaTeX[a2]) + ",0),B(" + (LaTeX[b1]) + "," + (LaTeX[b2]) + ",0)∈ π  "
text4: "2. \; \text{Pravidelný } " + (LaTeX[N]) + "\text{ - uholník }ABC... "
C = Point(Circle[B, Distance[A, B], Segment[A, B]])
a, D, E, F, G, H, stenaABCD, stenaADHE, stenaABFE, stenaBCGF, stenaCDHG, stenaEFGH, hranaAD, hranaAB, hranaBC, hranaCD, hranaAE, hranaDH, hranaEH, hranaEF, hranaBF, hranaFG, hranaCG, hranaGH = Cube(A, B, C)
I = PointIn(stenaABFE)
p = Plane(F, hranaDH)
R = Centroid(stenaABFE)