Circle and Line: Parameter Range
Circle and Line: Parameter Range
Find the parameter interval for the requested number of intersections. Endpoints are tangent lines; the open interval gives two intersections.
- 77 bytes
- COMP mode
Worked examples
Example 1
Original practice. Find the parameter interval for the requested number of intersections. Endpoints are tangent lines; the open interval gives two intersections. (x−2)²+(y+1)²=25; 3x+4y+c=0. Nₚ=2: c=?
Answer
Standard solution (without a calculator)
- d=|6−4+c|/5=|c+2|/5
- d<5 ⇔ |c+2|<25 ⇔ −27<c<23
- c=−27 ∨ 23 ⇒ d=5; c=−2 ⇒ d=0
- Expand or substitute to verify each equality above.
Example 2
Original practice. Find the parameter interval for the requested number of intersections. Endpoints are tangent lines; the open interval gives two intersections. (x+1)²+(y−2)²=9; x+c=0. Nₚ=2: c=?
Answer
Standard solution (without a calculator)
- d=|−1+c|; d<3 ⇔ −3<c−1<3
- −2<c<4; c∈{−2,4} ⇒ d=3
- Expand or substitute to verify each equality above.
Example 3
Original practice. Find the parameter interval for the requested number of intersections. Endpoints are tangent lines; the open interval gives two intersections. x²+y²=4; x+y+c=0. Nₚ≥1: c=?
Answer
Standard solution (without a calculator)
- d=|c|/√2; d≤2 ⇔ |c|≤2√2
- −2√2≤c≤2√2; c=±2√2 ⇒ Nₚ=1
- Expand or substitute to verify each equality above.
When to use it
Find the parameter interval for the requested number of intersections. Endpoints are tangent lines; the open interval gives two intersections.
Input order
- h,k,r,a,b
- A=h; B=k; C=r→r√N; D=a; X=b; Y=ah+bk; M=N
- (x−h)²+(y−k)²=r²; r>0; ax+by+c=0; N=a²+b²>0; L=−ah−bk−r√N; U=−ah−bk+r√N; ax+by=t⇒c=−t⇒−U<t<−L; c=αt+β; α>0:(L−β)/α<t<(U−β)/α; α<0:(U−β)/α<t<(L−β)/α; α=0:c=β
- 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
- L,U; L<c<U:2; c∈{L,U}:1; c<L ∨ c>U:0; −1
- 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.
- r≤0 ∨ a²+b²=0 ⇒ [−1]; r>0 ∧ a²+b²>0 ⇒ [L,U]; L=−1: [−1,U]≠[−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.
- r≤0 ∨ a²+b²=0 ⇒ [−1]; r>0 ∧ a²+b²>0 ⇒ [L,U]; L=−1: [−1,U]≠[−1]
- After the final screen press AC. An extra EXE starts a new run; it does not reveal another result.
Checking access…