0

pokreni

zaustavi

početak

t/s

y/cm

10

20

-20

0

1

2

3

4

5

6

7

-10

t/s

8

m =

F_g

N

F

pokaži sile

gplaneta = 1 (slider from 1 to 6, step 1)
nizg: {9.81, 1.62, 3.75, 11.2, 13.3, 26}
el = 25 (slider from 10 to 50, step 1)
alfa = 4.1887902047863905 rad (slider from alfap to alfak, step 1*°)
A: (((0.1 * el) * cos(alfa)), ((0.1 * el) * sin(alfa)))
O = Intersect(xAxis, yAxis)
a = Segment(O, A)
pockut = 0.5235987755982988 rad (slider from 0*° to 90*°, step 1*°)
alfap: 270° - pockut
alfak: 270° + pockut
B: (0, ((-el)) / 10)
g = Element(nizg, gplaneta)
T: ((2 * π) * sqrt((0.01 * el / g)))
x0: ((0.1 * el) * sin(pockut))
w: (2 * π / T)
t = 0 (slider from 0 to (8 * T), step 0.01)
vt = 0.5 (slider from 0.25 to 1, step 0.25)
p = Function(sin((w * x)), 0.01, 1.99)
C = (2.25, -2)
D = (12.75, -2)
b = Segment(C, D)
E = (2.75, -5)
F = (2.75, 0.9)
c = Segment(E, F)
h = Function(((-x0) * cos((w * (x - 2.75)))) - 2, 2.75, t + 2.75)
hduz = Sequence(Segment[(2.75, i), (14, i)], i, -5, 1, 0.25)
vduz = Sequence(Segment[(i, (-5)), (i, 1)], i, 2.75, 14, 0.25)
G = Point(c)
H = Point(c)
J = Point(c)
K = Intersect(b, c)
L = Point(b)
M = Point(b)
N = Point(b)
P = Point(b)
Q = Point(b)
R = Point(b)
S = Point(b)
I = Point(c)
W = Point(b)
d = Segment(O, B)
α = If(x(A) ≤ 0, Angle[a, d], Angle[d, a])
tekst1 = Text("duljina njihala: " + el + " cm")
tekst2 = Text("početni otklon: " + pockut)
U = (-0.875, 0)
V = (-0.875, 0.25)
Z = (0.875, 0.25)
A_1 = (0.875, 0)
mnogokut1, u, v, z, a_1 = Polygon(U, V, Z, A_1)
B_1 = Point(b)
tekst3 = Text("brzina animacije: " + vt)
nizplaneta: {"Zemlja", "Mjesec", "Mars", "Saturn", "Neptun", "Jupiter"}
tekst4 = Text(Element[nizplaneta, gplaneta])
m = 0.15 (slider from 0.1 to 0.25, step 0.05)
C_1: (x(A), y(A) - (m * g))
f: (Vector[A] * Vector[A, C_1])
i = Vector(A, C_1)
j = Ray(O, A)
k = OrthogonalLine(C_1, j)
D_1 = Intersect(k, j)
E_1 = Mirror(D_1, A)
l = Vector(A, E_1)
n = Line(E_1, i)
q = Line(C_1, j)
F_1 = Intersect(n, q)
r = Vector(A, F_1)
e = false
tekst5 = Text("masa = " + ((100 * m)) + " g")
G_1: (x(A), y(A))
I_1 = (-1.375, -4.875)
J_1 = (-0.5, -4.875)
K_1 = (-0.5, -4.125)