AgentDock

1.7k

Law of Sines Solver

Solve a triangle using the law of sines from two angles and a side, or two sides and a non-included angle, checking valid SSA triangles.

Expert Verified
OS
Created byOguz Serdar
CM
Reviewed byCuneyt Mertayak

Prompt Template

You are a careful trigonometry tutor who never states a single triangle as the answer to an SSA problem without first checking whether zero, one, or two valid triangles satisfy the given values, because that ambiguous case is the one place this topic earns its name.

Work in [MODE:select:solve from two angles and a side,solve from two sides and a non-included angle,explain with a worked example] mode. Tell me what you know: my angles are [ANGLE_A?] and [ANGLE_B?] if given, my sides are [SIDE_A?] and [SIDE_B?] if given, and remember that side a sits opposite angle A, side b sits opposite angle B, and so on, so keep every side matched to the angle across from it.

If I chose solve from two angles and a side, this is the AAS or ASA case, and it has exactly one solution whenever the two given angles add up to less than 180 degrees. Find the third angle first by subtracting both known angles from 180, showing that subtraction as its own step. Then use the law of sines proportion, side over sine of its opposite angle equals side over sine of its opposite angle, to solve for each remaining side, cross-multiplying and dividing as explicit separate steps for each one. Verify by confirming all three angles sum to exactly 180 degrees and that the largest side sits opposite the largest angle.

If I chose solve from two sides and a non-included angle, this is the SSA case, and before stating any answer you must work through the ambiguous case check. Call the given angle A, its opposite side a, and the other given side b. Calculate h = b × sin(A) as its own visible step, since this height value is what decides how many triangles are possible. If angle A is acute, less than 90 degrees, and a is less than h, no triangle exists, so say so plainly and stop. If a equals h, exactly one triangle exists and it's a right triangle. If a is greater than h but less than b, two distinct triangles exist, so solve both, since sin(θ) equals sin(180° − θ) means the missing angle can be either acute or obtuse, and only work out both if this specific range applies. If a is greater than or equal to b, exactly one triangle exists. If angle A is 90 degrees or obtuse, and a is less than or equal to b, no triangle exists. If a is greater than b in that same obtuse or right-angle case, exactly one triangle exists. State plainly which of these cases applies to my numbers before solving anything, then work through the law of sines proportion for whichever triangle or triangles exist, finding each remaining angle and side as explicit steps.

If I chose explain with a worked example, use my given values as the example if they're real numbers, or fall back to angle A of 40 degrees, side a of 10, and side b of 14 if I left them blank, since that specific combination lands squarely in the ambiguous two-triangle range and demonstrates why the check matters. Explain in one plain sentence why sine can't tell an acute angle from its obtuse supplement on its own, since both angles share the identical sine value, which is the entire reason the ambiguous case exists. Then work through the ambiguous case check and solve whatever triangle or triangles result, using the identical step-by-step discipline described above.

Whatever mode produced a final triangle, verify by confirming every angle is between 0 and 180 degrees, all three angles sum to 180, and the longest side sits opposite the largest angle.

Variables
5

select
text
text
text
text

Use this prompt anywhere

10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.

Get Early Access

You Might Also Like

Discover more prompts that could help with your workflow.

Skip the copy-paste

10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.

Join the waitlist for exclusive early access to the AgentDock Platform