\frac{a1}{a2} x \frac{b1}{b2} x \frac{c1}{c2} = 1

pc = Numero di pesetti in C
pb (Numero di pesetti in B) = pc x b1/b2
pa (Numero di pesetti in A) = pc x a1/a2 

Teorema di Ceva

pc =

A = (0.870233043478261, 1.0352956521739134)
B = (6, 1)
C = (5.681711304347826, 5.327466086956521)
t1, c, a, b = Polygon(A, B, C)
D = Point(a)
f = Line(A, D)
E = Point(b)
g = Line(B, E)
F = Intersect(f, g)
h = Line(C, F)
a1 = Segment(A, E)
a2 = Segment(E, C)
ra: a1 / a2
b1 = Segment(C, D)
b2 = Segment(D, B)
pc: 10
rb: b1 / b2
pa: (pc * ra)
pb: (pc * rb)
G = Intersect(h, c)
c1 = Segment(B, G)
c2 = Segment(G, A)
d: a1 / a2
CampoInserimento1 = Textfield(pc)
testo4: "pa = " + pa + ""
testo5: "pb = " + pb + ""