Piramida si Conul

Invatare interactiva

Piramida / Conul

n = 3 (slider from 3 to 200, step 1)
r = 2.6 (slider from 0 to 10, step 0.1)
h = 8.2 (slider from 0 to 10, step 0.1)
A: (0, 0)
c = Circle(A, r)
list1 = Sequence((r; (360° * j / n)), j, 0, n)
list2 = Sequence(Segment[Element[list1, j], Element[list1, j + 1]], j, 1, n)
B = Midpoint(Element[list1, 1], Element[list1, 2])
a_b = Segment(A, B)
V: (0, 0, h)
list3 = Sequence(Segment[Element[list1, j], V], j, 1, n)
a_p = Segment(B, V)
a, d, b = Cone(A, V, r)
f = Segment(V, A)
g = Element(list3, 1)
i = Element(list2, 1)
text1: "a_{bazei}=" + (LaTeX[a_b]) + "cm"
text2: "raza=" + (LaTeX[r]) + " cm"
text3: "a_{piramidei}=" + (LaTeX[a_p]) + "cm"
A_l: (((n * i) * a_p)) / 2
text5: "A_{l.piramidei }=\frac{P_b*a_p}{2}=" + (LaTeX[A_l]) + " cm^2"
A_l': ((((2 * π) * r) * g)) / 2
text6: "A_{l.conului}=\frac{2πrg}{2}=" + (LaTeX[A_l']) + " cm^2"
V_c: (((π * r^(2)) * h)) / 3
text8: "V_{conului}=\frac{πr^2*h}{3}=" + (LaTeX[V_c]) + "cm^3"
A_b: (((i * n) * a_b)) / 2
V_p: ((A_b * h)) / 3
text7: "V_{piramidei}=\frac{A_b*h}{3}=" + (LaTeX[V_p]) + "cm^3"
α = Angle(V, A, B)
text4: "g. conului=" + g + " cm"