Smaller angle between two lines
Smaller angle between two lines
Find the smaller angle from four normal coefficients, including horizontal and vertical lines.
- 32 bytes
- COMP mode
Worked examples
Example 1
Two roads on a map follow the given lines. Find their smaller angle and choose the answer.
y=0; y=x.
Answer
C; 45°.
Standard solution (without a calculator)
- Coefficients: y=0 ⇒ (a,b)=(0,1); y=x ⇒ (c,d)=(−1,1).
- Method: u·v=0(−1)+1(1)=1; det(u,v)=0(1)−1(−1)=1.
- Smaller angle: θ=arctan(|det|/|u·v|)=arctan(1)=45°; 0°<θ<90°.
Example 2
Find the smaller angle between the two given lines and choose the answer.
x+2y=3; 2x−y=4.
Answer
D; 90°.
Standard solution (without a calculator)
- Coefficients: x+2y−3=0; 2x−y−4=0 ⇒ (a,b,c,d)=(1,2,2,−1).
- Method: u·v=1(2)+2(−1)=0; det(u,v)=1(−1)−2(2)=−5.
- Smaller angle: u·v=0 ⇒ L1⊥L2 ⇒ θ=90°.
Example 3
Find the smaller angle θ and the other angle 180°−θ, both to two decimal places.
x=5; −3x+4y=7.
Answer
(a) 53.13°; (b) 126.87°.
Standard solution (without a calculator)
- Coefficients: x−5=0; −3x+4y−7=0 ⇒ (a,b,c,d)=(1,0,−3,4).
- Method: u·v=1(−3)+0(4)=−3; det(u,v)=1(4)−0(−3)=4.
- Smaller angle: θ=arctan(4/3)=53.130102354…°≈53.13°.
- Smaller angle: 180°−θ=126.869897646…°≈126.87°.
When to use it
Find the smaller angle from four normal coefficients, including horizontal and vertical lines.
Use
- Find the smaller angle from four normal coefficients, including horizontal and vertical lines.
Enter
- Write every value, including zero; EXE alone keeps the old variable value.
- a1 (A), b1 (B), a2 (C), b2 (D)
Results
- Smaller angle θ (°)
Limits
- Use COMP and Deg. Each normal must be nonzero. The result is 0°–90°; 0° means parallel directions and does not establish coincidence. Constants are omitted; extreme or nearly parallel data may lose precision.
- Write every value, including zero; EXE alone keeps the old variable value.
Checking access…