圓與直線的關係
Author: 藍邦偉  老師
Date: 10 1 月 2013

$A$

$B$

$Q$

相切:d(Q,L)=r

相離:d(Q,L)>r

圓與直線的關係

$ 圓與直線的關係 $

Q_0 = (2.2, 2.94)
B_0 = (2.46, 6.32)
A_0 = (6.46, 2.58)
u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
A = DynamicCoordinates(A_0, floor(x(A_0)), floor(y(A_0)))
B = DynamicCoordinates(B_0, floor(x(B_0)), floor(y(B_0)))
a = Line(B, A)
Q = DynamicCoordinates(Q_0, floor(x(Q_0)), floor(y(Q_0)))
b = OrthogonalLine(Q, a)
D = Intersect(a, b)
r = 2.8 (slider from 1 to 5, step 0.1)
c = Circle(Q, r)
E = Intersect(c, b, 2)
F = (-5.84, 3.42)
C = (-5.82, 3.22)
text1: "$ 相割：\;d(Q,L)<r$
$\frac{a}{b}<" + (LaTeX[r]) + "$"
text2: "$ 已知圓\;C:\;" + (LaTeX[c]) + "$
$與直線\overleftrightarrow{AB} ：\;" + (LaTeX[a]) + "$"
f_1 = Polynomial({A, B})
list = Coefficients(f_1)