Circle and Line: Two Input Forms
Circle and Line: Two Input Forms
Circle and Line: Two Input Forms · Find the number of intersections and all intersection coordinates. When they exist, find the chord midpoint H and half-length ρ.
- 234 bytes
- COMP mode
Worked examples
Example 1
Original practice. Find the number of intersections and all intersection coordinates. When they exist, find the chord midpoint H and half-length ρ. x²+y²−4x+2y−20=0; y−2=0. H=?,ρ=?,P₁=?,P₂=?
Answer
Standard solution (without a calculator)
- x²−4x+y²+2y=20 ⇒ (x−2)²+(y+1)²=25
- G=(2,−1); R=25; y=2 ⇒ (x−2)²=25−9=16
- x=6 ∨ −2; P₁=(6,2); P₂=(−2,2)
- H=((6−2)/2,2)=(2,2); ρ=|6−(−2)|/2=4
- Expand or substitute to verify each equality above.
Example 2
Original practice. Find the number of intersections and all intersection coordinates. When they exist, find the chord midpoint H and half-length ρ. (x+1)²+(y−2)²=25; 3x+4y+20=0. H=?,ρ=?,P₁=?,P₂=?
Answer
Standard solution (without a calculator)
- G=(−1,2); r=5; d=|3(−1)+4×2+20|/5=5
- H=(−1,2)−(25/25)(3,4)=(−4,−2)
- 3(−4)+4(−2)+20=0; (−4+1)²+(−2−2)²=25; ρ=0
- Expand or substitute to verify each equality above.
Example 3
Original practice. Find the number of intersections and all intersection coordinates. When they exist, find the chord midpoint H and half-length ρ. x²+y²−6x−2y+6=0; x−6=0. H=?,ρ=?,P₁=?,P₂=?
Answer
Standard solution (without a calculator)
- x²−6x+y²−2y=−6 ⇒ (x−3)²+(y−1)²=4
- x=6 ⇒ (6−3)²+(y−1)²=4
- (y−1)²=−5<0; P∈ℝ²:∅
- Expand or substitute to verify each equality above.
When to use it
Circle and Line: Two Input Forms · Find the number of intersections and all intersection coordinates. When they exist, find the chord midpoint H and half-length ρ.
Input order
- M,u/v/w ∨ h/k/r,a,b,c
- M=1/2→N; A=u/h→h→Hₓ; B=v/k→k→−Hᵧ; C=w/r→R→T; D=a; X=b; Y=c→q/N→s
- M=1:x²+y²+ux+vy+w=0,h=−u/2,k=−v/2,R=h²+k²−w>0; M=2:(x−h)²+(y−k)²=r²,r>0; ax+by+c=0; N=a²+b²>0
- Fill every field explicitly, including 0. Blank EXE uses the current memory value; clearing memory makes it 0, but cannot detect omissions. All variables and Ans are overwritten.
Output order
- Nₚ=0; Nₚ=1:Hₓ,Hᵧ; Nₚ=2:Hₓ,Hᵧ,ρ,x₁,y₁,x₂,y₂; −1 / −2
- Use a genuine circle with positive radius and a nonzero line direction. Only the complete infinite line is handled. Near tangency, cancellation can misclassify a zero difference; use exact equations. Extreme scales are unsupported. Reversing the line coefficients swaps the two-point order.
- −1: invalid circle, line or entry mode; −2: near-tangency warning, no coordinates. A single −1 is a status, while a two-screen valid lower bound can itself equal −1.
Conditions and limits
- Use COMP and Norm 1; the images use Deg, which does not change this algebra.
- All intermediate values must remain within calculator range. Decimal outputs are approximations. Check nearly equal values with exact algebra; an error or overflow invalidates the whole run.
- Use a genuine circle with positive radius and a nonzero line direction. Only the complete infinite line is handled. Near tangency, cancellation can misclassify a zero difference; use exact equations. Extreme scales are unsupported. Reversing the line coefficients swaps the two-point order.
- −1: invalid circle, line or entry mode; −2: near-tangency warning, no coordinates. A single −1 is a status, while a two-screen valid lower bound can itself equal −1.
- After the final screen press AC. An extra EXE starts a new run; it does not reveal another result.
Checking access…