Date: 1 9 月 2013

$k=%v$

$Step=%v$

Step1.決定球的個數

Step2. 移動紅點開始分球，\;並於確認時按confirm按鈕，\;將資料匯入表格中.

Step3. 觀察試算表的結果

O_2 = (6, 3)
R = 2
k = 3 (slider from 1 to 3, step 1)
A2 = (1, -2)
B2: A2 + (0.500000000000001, 0.500000000000001)
E2 = Distance(O_2, B2)
A3 = (2, -2)
B3: A3 + (0.500000000000001, 0.500000000000001)
E3 = Distance(O_2, B3)
A4 = (3, -2)
B4: A4 + (0.500000000000001, 0.500000000000001)
E4 = Distance(O_2, B4)
A5 = (4, -2)
B5: A5 + (0.500000000000001, 0.500000000000001)
E5 = Distance(O_2, B5)
A6 = (5, -2)
B6: A6 + (0.500000000000001, 0.500000000000001)
E6 = Distance(O_2, B6)
A7 = (6, -2)
B7: A7 + (0.500000000000001, 0.500000000000001)
E7 = Distance(O_2, B7)
A8 = (7, -2)
B8: A8 + (0.500000000000001, 0.500000000000001)
E8 = Distance(O_2, B8)
A9 = (8, -2)
B9: A9 + (0.500000000000001, 0.500000000000001)
E9 = Distance(O_2, B9)
r = 0.5
G9 = If(E9 ≤ R - r, 1, 0)
G8 = If(E8 ≤ R - r, 1, 0)
G7 = If(E7 ≤ R - r, 1, 0)
G6 = If(E6 ≤ R - r, 1, 0)
G5 = If(E5 ≤ R - r, 1, 0)
G4 = If(E4 ≤ R - r, 1, 0)
G3 = If(E3 ≤ R - r, 1, 0)
G2 = If(E2 ≤ R - r, 1, 0)
A1 = (0, -2)
B1: A1 + (0.5, 0.5)
E1 = Distance(O_2, B1)
G1 = If(E1 ≤ R - r, 1, 0)
A10 = (9, -2)
B10: A10 + (0.500000000000001, 0.500000000000001)
E10 = Distance(O_2, B10)
G10 = If(E10 ≤ R - r, 1, 0)
list8: {G1, G2, G3, G4, G5, G6, G7, G8, G9, G10}
list8' = First(list8, k)
O_1 = (1, 3)
D10 = Distance(O_1, B10)
F10 = If(D10 ≤ R - r, 1, 0)
D9 = Distance(O_1, B9)
F9 = If(D9 ≤ R - r, 1, 0)
D8 = Distance(O_1, B8)
F8 = If(D8 ≤ R - r, 1, 0)
D7 = Distance(O_1, B7)
F7 = If(D7 ≤ R - r, 1, 0)
D6 = Distance(O_1, B6)
F6 = If(D6 ≤ R - r, 1, 0)
D5 = Distance(O_1, B5)
F5 = If(D5 ≤ R - r, 1, 0)
D4 = Distance(O_1, B4)
F4 = If(D4 ≤ R - r, 1, 0)
D3 = Distance(O_1, B3)
F3 = If(D3 ≤ R - r, 1, 0)
D2 = Distance(O_1, B2)
F2 = If(D2 ≤ R - r, 1, 0)
D1 = Distance(O_1, B1)
F1 = If(D1 ≤ R - r, 1, 0)
list7: {F1, F2, F3, F4, F5, F6, F7, F8, F9, F10}
list7' = First(list7, k)
c_1 = Circle(O_1, R)
c_2 = Circle(O_2, R)
list1: {A1, A2, A3, A4, A5, A6, A7, A8, A9, A10}
list2: {B1, B2, B3, B4, B5, B6, B7, B8, B9, B10}
C1 = Circle(B1, r)
C2 = Circle(B2, r)
C3 = Circle(B3, r)
C4 = Circle(B4, r)
C5 = Circle(B5, r)
C6 = Circle(B6, r)
C7 = Circle(B7, r)
C8 = Circle(B8, r)
C9 = Circle(B9, r)
C10 = Circle(B10, r)
list3: {C1, C2, C3, C4, C5, C6, C7, C8, C9, C10}
list4: {F1, F2, F3, F4, F5, F6, F7, F8, F9, F10}
list5: {G1, G2, G3, G4, G5, G6, G7, G8, G9, G10}
k2 = Sum(list8')
k1 = Sum(list7')
text1_1: "" + (LaTeX[k1]) + ""
text2_1: "" + (LaTeX[k2]) + ""
list3' = First(list3, k)
list4' = First(list4, k)
list5' = First(list5, k)
O_3 = (11, 3)
c_3 = Circle(O_3, R)
H1 = Distance(O_3, B1)
H2 = Distance(O_3, B2)
H3 = Distance(O_3, B3)
H4 = Distance(O_3, B4)
H5 = Distance(O_3, B5)
H6 = Distance(O_3, B6)
H7 = Distance(O_3, B7)
H8 = Distance(O_3, B8)
H9 = Distance(O_3, B9)
H10 = Distance(O_3, B10)
list6: {H1, H2, H3, H4, H5, H6, H7, H8, H9, H10}
list6' = First(list6, k)
I1 = If(H1 ≤ R - r, 1, 0)
I2 = If(H2 ≤ R - r, 1, 0)
I3 = If(H3 ≤ R - r, 1, 0)
I4 = If(H4 ≤ R - r, 1, 0)
I5 = If(H5 ≤ R - r, 1, 0)
I6 = If(H6 ≤ R - r, 1, 0)
I7 = If(H7 ≤ R - r, 1, 0)
I8 = If(H8 ≤ R - r, 1, 0)
I9 = If(H9 ≤ R - r, 1, 0)
I10 = If(H10 ≤ R - r, 1, 0)
list9: {I1, I2, I3, I4, I5, I6, I7, I8, I9, I10}
list9' = First(list9, k)
k3 = Sum(list9')
text3_1: "" + (LaTeX[k3]) + ""
s = 0 (slider from 0 to 3, step 1)
D_1 = (0, -2)
D_2: D_1 + (1, 0)
D_3: D_2 + (1, 0)
D_4: D_3 + (1, 0)
D_5: D_4 + (1, 0)
D_6: D_5 + (1, 0)
D_7: D_6 + (1, 0)
D_8: D_7 + (1, 0)
D_9: D_8 + (1, 0)
D_10: D_9 + (1, 0)
rowN = 1
P1 = 0
Q1 = 0
R1 = 0
P2 = 0
Q2 = 0
R2 = 0
P3 = 0
Q3 = 0
R3 = 0
P4 = 0
Q4 = 0
R4 = 0
P5 = 0
Q5 = 0
R5 = 0
P6 = 0
Q6 = 0
R6 = 0
P7 = 0
Q7 = 0
R7 = 0
P8 = 0
R8 = 0
Q8 = 0
P9 = 0
Q9 = 0
R9 = 0
P10 = 0
Q10 = 0
R10 = 0
text6: "$\fgcolor{blue}" + (LaTeX[P1]) + "\;\;\fgcolor{red}" + (LaTeX[Q1]) + "\;\;\fgcolor{669900}" + (LaTeX[R1]) + "$
$\fgcolor{blue}" + (LaTeX[P2]) + "\;\;\fgcolor{red}" + (LaTeX[Q2]) + "\;\;\fgcolor{669900}" + (LaTeX[R2]) + "$
$\fgcolor{blue}" + (LaTeX[P3]) + "\;\;\fgcolor{red}" + (LaTeX[Q3]) + "\;\;\fgcolor{669900}" + (LaTeX[R3]) + "$
$\fgcolor{blue}" + (LaTeX[P4]) + "\;\;\fgcolor{red}" + (LaTeX[Q4]) + "\;\;\fgcolor{669900}" + (LaTeX[R4]) + "$
$\fgcolor{blue}" + (LaTeX[P5]) + "\;\;\fgcolor{red}" + (LaTeX[Q5]) + "\;\;\fgcolor{669900}" + (LaTeX[R5]) + "$
$\fgcolor{blue}" + (LaTeX[P6]) + "\;\;\fgcolor{red}" + (LaTeX[Q6]) + "\;\;\fgcolor{669900}" + (LaTeX[R6]) + "$
$\fgcolor{blue}" + (LaTeX[P7]) + "\;\;\fgcolor{red}" + (LaTeX[Q7]) + "\;\;\fgcolor{669900}" + (LaTeX[R7]) + "$
$\fgcolor{blue}" + (LaTeX[P8]) + "\;\;\fgcolor{red}" + (LaTeX[Q8]) + "\;\;\fgcolor{669900}" + (LaTeX[R8]) + "$
$\fgcolor{blue}" + (LaTeX[P9]) + "\;\;\fgcolor{red}" + (LaTeX[Q9]) + "\;\;\fgcolor{669900}" + (LaTeX[R9]) + "$
$\fgcolor{blue}" + (LaTeX[P10]) + "\;\;\fgcolor{red}" + (LaTeX[Q10]) + "\;\;\fgcolor{669900}" + (LaTeX[R10]) + "$"