Cosine rule for SAS and SSS
Cosine rule for SAS and SSS
Cosine rule for SAS and SSS · M=2: c,cos(max angle),max angle,S; M=3: cos(max angle),max angle,S
- 256 bytes
- COMP mode
Worked examples
Example 1
Triangle ABC has AB=5 cm, AC=7 cm and included angle ∠A=60°. Find BC and its area. Which option also correctly states whether its largest angle is acute or obtuse?
Answer
Standard solution (without a calculator)
- Find the third side: With a=5, b=7 and θ=60°, c²=5²+7²−2×5×7 cos60°=39; hence BC=√39 cm≈6.244997998 cm.
- Find the area: S=ab sinθ/2=5×7 sin60°/2=35√3/4 cm²≈15.15544457 cm².
- Identify the longest side: AC=7 cm exceeds √39 cm and 5 cm, so the largest angle is opposite AC.
- Classify it: cos(max angle)=(5²+39−7²)/(2×5×√39)=3/(2√39)>0; max angle≈76.10211375°<90°.
- Choose the option: The ordered results √39, 35√3/4 and an acute largest angle give option A.
Example 2
A triangle has side lengths 3 cm, 4 cm and 6 cm. Find the cosine and size of its largest angle, determine whether that angle is acute or obtuse, and find its exact area.
Answer
Standard solution (without a calculator)
- Identify the longest side: The 6 cm side is longest, and 3+4>6 makes a valid triangle.
- Apply the cosine rule: cos(max angle)=(3²+4²−6²)/(2×3×4)=−11/24≈−0.458333333.
- Classify and calculate: The negative cosine means an obtuse largest angle, cos⁻¹(−11/24)≈117.2796127°>90°.
- Use Heron’s formula: s=(3+4+6)/2=13/2 and S=√[(13/2)(7/2)(5/2)(1/2)]=√455/4 cm²≈5.332682252 cm².
- Choose the option: These values match option C.
Example 3
Two sides of a triangular plot are 9 m and 12 m with included angle 120°. Find the third side, largest angle and exact area; give the third side also to three decimal places.
Answer
Standard solution (without a calculator)
- Apply the cosine rule: c²=9²+12²−2×9×12 cos120°=333, so c=√333=3√37 m≈18.24828759 m.
- Identify the largest angle: c is longer than 12 m and 9 m, so its opposite angle is the given 120°.
- Check the cosine display: cos(max angle)=cos120°=−1/2=−0.5.
- Find the exact area: S=9×12 sin120°/2=27√3 m²≈46.7653718 m².
- State the requested rounding: The third side is 18.248 m to three decimal places; exact area is 27√3 m².
When to use it
The cosine rule finds a third side from SAS and the angle opposite the longest side from either SAS or SSS. The area comes from half the product of two sides and their included sine for SAS, or Heron’s formula for SSS.
Choose mode and enter triangle data
- Enter M=2 for SAS, then A=a and B=b as positive sides and C as their included angle in degrees, with 0<C<180. Enter M=3 for SSS, then positive side lengths A=a, B=b and C=c. Use one length unit.
- The program sets Deg / Norm 1. Enter all four requested values; blank EXE at M? retains the preset SAS mode M=2, but blanks at side prompts can retain prior values.
Read the appropriate sequence
- For SAS, read third side c, cos(max angle), max angle in degrees, then area S. For SSS, there is no third-side display: read cos(max angle), max angle, then S. Press EXE at each Disp pause and AC after S.
- The largest angle lies opposite the longest side, even when that is not the calculated SAS side. An invalid or nearly degenerate triangle shows −99; do not interpret it as an angle or area.
Question types
- Original HKDSE Mathematics Compulsory Part practice covers the cosine rule, largest-angle classification and area from SAS or SSS. Write the relevant formula and justify which side is longest.
Before you start
- Use an empty P1 with at least 256 bytes. The program itself selects Deg / Norm 1. P1–P4 share 680 bytes. A, B, C, D, M, X and Y may be overwritten; save stored values first.
- M must be 2 (SAS) or 3 (SSS). All entered sides must be positive. In SAS, C is the included angle and must be strictly between 0° and 180°; in SSS, C is the third side.
- For SSS, the three lengths must form a nondegenerate triangle. The program additionally rejects some valid but nearly collinear triangles when the perimeter exceeds twice the longest side by no more than 1E−10 times that longest side.
- Invalid mode, nonpositive entries, SAS angles outside range and rejected SSS triples show −99. Extreme values can still trigger Math ERROR or lose precision; −99 is an error marker, not a geometric result.
- SAS displays four results, SSS displays three. The cosine is dimensionless, the angle is in degrees and S uses square length units. The SAS side uses the original length unit.
- Use the original input precision and keep radicals in written work. A cosine slightly below −1 from rounding is clamped to −1; near-degenerate or huge triangles need extra care.
- The program reports the largest angle, not necessarily the angle entered in SAS. It does not identify which side was longest on the display; determine that from the triangle.
Checking access…