Brojevni pravac
Author: Petar Piljić

0

1

-1

2

-2

-3

3

4

-4

-5

-6

5

6

7

8

-7

-8

Provjera točnosti

A = Point(a)
B = Point(a)
C = Point(a)
D = Point(a)
E = Point(a)
F = Point(a)
G = Point(a)
H = Point(a)
I = Point(a)
J = Point(a)
K = Point(a)
L = Point(a)
M = Point(a)
N = Point(a)
O = Point(a)
P = Point(a)
Q = Point(a)
R = Point(a)
S = Point(a)
T = Point(a)
U = Point(a)
V = Point(a)
W = Point(a)
Z = Point(a)
A_1 = Point(a)
B_1 = Point(a)
C_1 = Point(a)
D_1 = Point(a)
E_1 = Point(a)
F_1 = Point(a)
G_1 = Point(a)
H_1 = Point(a)
I_1 = Point(a)
J_1 = Point(a)
K_1 = Point(a)
L_1 = Point(a)
M_1 = Point(a)
N_1 = Point(a)
O_1 = Point(a)
P_1 = Point(a)
Q_1 = Point(a)
R_1 = Point(a)
S_1 = Point(a)
T_1 = Point(a)
U_1 = Point(a)
V_1 = Point(a)
W_1 = Point(a)
Z_1 = Point(a)
A_2 = Point(a)
B_3 = Point(a)
C_3 = Point(a)
i = 1 (slider from 0 to 1, step 0.1)
brojnik1_C: round(random() * (24 - i) + i)
brojnik1_P: round(random() * (24 - i) + i)
nazivnik1: round(random() * (8 - i) + i)
predznak1: round(random() * (1 - i) + i)
brojnik_C = If(i ≟ 0, -brojnik1_C, brojnik1_C)
brojnik_P = If(i ≟ 0, -brojnik1_P, brojnik1_P)
nazivnik = If(nazivnik1 ≟ 0, 5, nazivnik1)
cijeli: floor(brojnik_C / nazivnik)
text2: "Pridruži\, plavu\, točkut\,\, razlomku\,\,\frac{" + brojnik_P + "}{" + nazivnik + "} \,na\,brojevnom\, pravcu."
brojnik: brojnik_C - cijeli nazivnik
text3: "Pridruži\, crvenu\, točku\, mješovitom\, broju\,\," + cijeli + " \frac{" + brojnik + "}{" + nazivnik + "} \,na\, brojevnom\, pravcu."
c = Circle(A, nazivnik 1)
D_2 = Intersect(c, a, 1)
E_2 = Intersect(c, a, 2)
d = Circle(A, nazivnik 1 * 2)
F_2 = Intersect(d, a, 1)
G_2 = Intersect(d, a, 2)
e = Circle(A, nazivnik 1 * 3)
H_2 = Intersect(e, a, 1)
I_2 = Intersect(e, a, 2)
f = Circle(A, nazivnik 1 * 4)
J_2 = Intersect(f, a, 2)
K_2 = Intersect(f, a, 1)
g = Circle(A, nazivnik 1 * 5)
L_2, M_2 = Intersect(g, a)
h = Circle(A, nazivnik 1 * 6)
N_2, O_2 = Intersect(h, a)
k = Circle(A, nazivnik 1 * 7)
p = Circle(A, nazivnik 1 * 8)
P_2, Q_2 = Intersect(k, a)
R_2, S_2 = Intersect(p, a)
B_2 = (1, 7)
C_2 = (3, 5)
b = false