// Numbas version: exam_results_page_options {"name": "Apply the sine rule", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"cc4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-AA3-BB3", "description": "", "name": "cc4"}, "cc1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-aa0-bb0", "description": "", "name": "cc1"}, "b3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(7..20)", "description": "", "name": "b3"}, "s5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(AA5)", "description": "", "name": "s5"}, "c31": {"templateType": "anything", "group": "Ungrouped variables", "definition": "ceil(sqrt(x4))", "description": "", "name": "c31"}, "s4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a3*sin(cc3)/c3", "description": "", "name": "s4"}, "c2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "floor(sqrt(x2))", "description": "", "name": "c2"}, "check2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-AA3-BB3-CC3", "description": "", "name": "check2"}, "bb41": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-cc3-aa31", "description": "", "name": "bb41"}, "aa2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(aa1,3)", "description": "", "name": "aa2"}, "c3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(c4..c5 except 0)", "description": "", "name": "c3"}, "r3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(a3^2+b3^2-c3^2)/(2*a3*b3)", "description": "", "name": "r3"}, "x4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "abs(a3^2-b3^2)", "description": "", "name": "x4"}, "c02": {"templateType": "anything", "group": "Ungrouped variables", "definition": "ceil(min(a0,b0)*0.05)", "description": "", "name": "c02"}, "aa0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arccos(p0),4)", "description": "", "name": "aa0"}, "t51": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(bb51)", "description": "", "name": "t51"}, "aa1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-bb0-cc0", "description": "", "name": "aa1"}, "x5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a3^2+b3^2", "description": "", "name": "x5"}, "aa4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-BB3-CC3", "description": "", "name": "aa4"}, "u21": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(cc21)", "description": "", "name": "u21"}, "cc11": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-aa0-bb01", "description": "", "name": "cc11"}, "cc0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arccos(r0),4)", "description": "", "name": "cc0"}, "c1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "max(c01,c02)", "description": "", "name": "c1"}, "bb5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(BB4,3)", "description": "", "name": "bb5"}, "bb2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(bb1,3)", "description": "", "name": "bb2"}, "p0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(c0^2+b0^2-a0^2)/(2*c0*b0)", "description": "", "name": "p0"}, "bb4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-AA3-CC3", "description": "", "name": "bb4"}, "bb01": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arcsin(t1),3)", "description": "", "name": "bb01"}, "r0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(a0^2+b0^2-c0^2)/(2*a0*b0)", "description": "", "name": "r0"}, "aa3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arccos(p3),4)", "description": "", "name": "aa3"}, "check1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-AA0-BB0-CC0", "description": "", "name": "check1"}, "temp1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a0*t0/s0", "description": "", "name": "temp1"}, "c01": {"templateType": "anything", "group": "Ungrouped variables", "definition": "ceil(sqrt(x1))", "description": "", "name": "c01"}, "u2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(cc2)", "description": "", "name": "u2"}, "cc3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arccos(r3),4)", "description": "", "name": "cc3"}, "c4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "max(c31,c32)", "description": "", "name": "c4"}, "bb3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arccos(q3),4)", "description": "", "name": "bb3"}, "p3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(c3^2+b3^2-a3^2)/(2*c3*b3)", "description": "", "name": "p3"}, "s2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(aa2)", "description": "", "name": "s2"}, "u5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(CC5)", "description": "", "name": "u5"}, "t1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "b0*sin(aa0)/a0", "description": "", "name": "t1"}, "bb51": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(bb41,3)", "description": "", "name": "bb51"}, "q0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(a0^2+c0^2-b0^2)/(2*a0*c0)", "description": "", "name": "q0"}, "u3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(CC3)", "description": "", "name": "u3"}, "cc5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(CC4,3)", "description": "", "name": "cc5"}, "bb0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arccos(q0),4)", "description": "", "name": "bb0"}, "c0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(c1..c2 except 0)", "description": "", "name": "c0"}, "t5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(BB5)", "description": "", "name": "t5"}, "a0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(10..25)", "description": "", "name": "a0"}, "x2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a0^2+b0^2", "description": "", "name": "x2"}, "s0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(aa0)", "description": "", "name": "s0"}, "cc2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(cc1,3)", "description": "", "name": "cc2"}, "c5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "floor(sqrt(x5))", "description": "", "name": "c5"}, "b0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(10..25)", "description": "", "name": "b0"}, "t2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(bb2)", "description": "", "name": "t2"}, "t3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(BB3)", "description": "", "name": "t3"}, "t0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(bb0)", "description": "", "name": "t0"}, "cc21": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(cc11,3)", "description": "", "name": "cc21"}, "q3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(a3^2+c3^2-b3^2)/(2*a3*c3)", "description": "", "name": "q3"}, "aa31": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arcsin(s4),3)", "description": "", "name": "aa31"}, "x1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "abs(a0^2-b0^2)", "description": "", "name": "x1"}, "u0": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(cc0)", "description": "", "name": "u0"}, "a3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(7..20)", "description": "", "name": "a3"}, "s3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "sin(AA3)", "description": "", "name": "s3"}, "bb1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pi-aa0-cc0", "description": "", "name": "bb1"}, "aa5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(AA4,3)", "description": "", "name": "aa5"}, "c32": {"templateType": "anything", "group": "Ungrouped variables", "definition": "ceil(min(a3,b3)*0.05)", "description": "", "name": "c32"}, "temp2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "b0-temp1", "description": "", "name": "temp2"}}, "ungrouped_variables": ["c4", "s3", "cc0", "temp2", "temp1", "b0", "cc3", "b3", "u2", "bb51", "q0", "q3", "c0", "aa4", "cc5", "s2", "s0", "cc1", "u0", "u3", "cc2", "aa5", "cc21", "aa1", "aa0", "aa3", "aa2", "x2", "c31", "c32", "bb01", "t51", "a0", "a3", "bb0", "s4", "s5", "c3", "c2", "c1", "x1", "bb41", "x4", "x5", "p3", "p0", "r0", "r3", "bb3", "aa31", "t5", "t2", "t3", "t0", "t1", "u5", "c02", "c5", "u21", "cc4", "cc11", "c01", "bb5", "bb4", "check2", "bb2", "bb1", "check1"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Apply the sine rule", "functions": {}, "showQuestionGroupNames": false, "parts": [{"stepsPenalty": 1, "scripts": {}, "gaps": [{"precisionPartialCredit": 0, "allowFractions": false, "correctAnswerFraction": false, "minValue": "{bb01}-0.001", "maxValue": "{bb01}+0.001", "precision": 3, "type": "numberentry", "precisionType": "dp", "showPrecisionHint": false, "strictPrecision": true, "scripts": {}, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "marks": 1}, {"precisionPartialCredit": 0, "allowFractions": false, "correctAnswerFraction": false, "minValue": "{CC21}-0.001", "maxValue": "{CC21}+0.001", "precision": 3, "type": "numberentry", "precisionType": "dp", "showPrecisionHint": false, "strictPrecision": true, "scripts": {}, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "marks": 1}, {"type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "allowFractions": false, "scripts": {}, "integerAnswer": true, "integerPartialCredit": 0, "minValue": "{c0}", "maxValue": "{c0}", "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "prompt": "

$A=\\var{AA0}$, $a=\\var{a0}$, $b=\\var{b0}$

\n

Angle $B=$ [[0]]

\n

Angle $C=$ [[1]]

\n

Side length $c=$ [[2]]

", "steps": [{"type": "information", "prompt": "

Use the Sine Rule to find $\\sin B$: $\\dfrac{a}{\\sin A}=\\dfrac{b}{\\sin B}$, and then find $B$. Remember that $A+B+C=\\pi$. Use the Sine Rule to find $c$: $\\dfrac{a}{\\sin A}=\\dfrac{c}{\\sin C}$.

", "showCorrectAnswer": true, "scripts": {}, "marks": 0}], "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"precisionPartialCredit": 0, "allowFractions": false, "correctAnswerFraction": false, "minValue": "{aa31}-0.001", "maxValue": "{aa31}+0.001", "precision": 3, "type": "numberentry", "precisionType": "dp", "showPrecisionHint": false, "strictPrecision": true, "scripts": {}, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "marks": 1}, {"precisionPartialCredit": 0, "allowFractions": false, "correctAnswerFraction": false, "minValue": "{bb51}-0.001", "maxValue": "{bb51}+0.001", "precision": 3, "type": "numberentry", "precisionType": "dp", "showPrecisionHint": false, "strictPrecision": true, "scripts": {}, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "marks": 1}, {"type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "allowFractions": false, "scripts": {}, "integerAnswer": true, "integerPartialCredit": 0, "minValue": "{b3}", "maxValue": "{b3}", "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "prompt": "

$a=\\var{a3}$, $C=\\var{CC3}$, $c=\\var{c3}$

\n

Angle $A=$ [[0]]

\n

Angle $B=$ [[1]]

\n

Side length $b=$ [[2]]

", "showCorrectAnswer": true, "marks": 0}], "statement": "

Suppose that $\\Delta ABC$ is a triangle with all interior angles $< \\dfrac{\\pi}{2}$ (in other words, an acute triangle). Here all angles are expressed in radians. Suppose also that standard naming conventions are used as indicated in the picture below (not necessarily an accurate picture of $\\Delta ABC$).

\n

Given the following angle and two side lengths, use the Sine Rule to determine the other side length and two angles. Write down the side length as a whole number and the angles (in radians) as decimals to 3dp.

\n

\n

\n

", "tags": ["checked2015", "SFY0001", "sine rule", "Sine Rule", "Solving triangles", "Triangle", "Two sides and an angle"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "\n \t\t

I want acute triangles with side lengths $a,b,c$. I need $|a^2-b^2|<c^2<a^2+b^2$ along with corresponding conditions on $a,b$. In fact the conditions $a^2-b^2<c^2<a^2+b^2$ and $b^2-a^2<c^2<a^2+b^2$ imply also the corresponding conditions on $a,b$. Thus the design of the question involves choosing $a,b$ and then choosing $c$ to meet the required condition. The integer $c$ is chosen randomly between the ceiling of $\\sqrt{|a^2-b^2|}$ and the floor of $\\sqrt{a^2+b^2}$. The first is no greater than the second because $\\max\\{a,b\\}$ lies between them; if $a=b$, then $\\sqrt{a^2+b^2} > 1$. The range of values for $a$ and $b$ may be changed according to taste without invalidating the question, but questions arise about accuracy. My calculations suggest that values of $a,b,c$ between 5 and 100 are safe, but I have been more conservative than that.

\n \t\t

The second part tests the ability to apply the same principles as the first part but with a different orientation to the triangle: the first part seeks $b,C,c$ whereas the second seeks $b,A,a$.

\n \t\t", "licence": "Creative Commons Attribution 4.0 International", "description": "

Two questions testing the application of the Sine Rule when given two sides and an angle. In this question, the triangle is always acute and one of the given side lengths is opposite the given angle.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

a) We use the Sine Rule to find $B$: $\\dfrac{a}{\\sin A}=\\dfrac{b}{\\sin B}$. Thus $\\sin B=\\dfrac{b \\sin A}{a}=\\dfrac{\\var{b0}* \\var{s0}}{\\var{a0}}=\\var{b0*s0/a0}$. To find $B$ we need to calculate $\\sin^{-1} (\\var{b0*s0/a0})$, calculating the angle between $0$ and $\\dfrac{\\pi}{2}$, so $B=\\var{bb01}$ (to 3 decimal places).

\n

Since $A+B+C=\\pi$, we calculate $C=\\pi-A-B=\\var{CC11}$. To 3dp, this gives $\\var{CC21}$.

\n

We use the Sine Rule to find $c$: $\\dfrac{a}{\\sin A}=\\dfrac{c}{\\sin C}$. Thus $c=\\dfrac{a \\sin C}{\\sin A}=\\dfrac{\\var{a0}* \\var{u21}}{\\var{s0}}=\\var{a0*u21/s0}$. The closest integer is then $\\var{c0}$. Note that this solution uses the 3dp value of $C$; the answer using $\\var{CC11}$ would give a slightly different long decimal value of $c$, but the integer value would be the same.

\n

b) We use the Sine Rule to find $A$: $\\dfrac{a}{\\sin A}=\\dfrac{c}{\\sin C}$. Thus $\\sin A=\\dfrac{a \\sin C}{c}=\\dfrac{\\var{a3}* \\var{u3}}{\\var{c3}}=\\var{a3*u3/c3}$. To find $A$ we need to calculate $\\sin^{-1} (\\var{a3*u3/c3})$, calculating the angle between $0$ and $\\dfrac{\\pi}{2}$, so $A=\\var{aa31}$ (to 3 decimal places).

\n

Since $A+B+C=\\pi$, we calculate $B=\\pi-A-C=\\var{bb41}$. To 3dp, this gives $\\var{bb51}$.

\n

We use the Sine Rule to find $b$: $\\dfrac{b}{\\sin B}=\\dfrac{c}{\\sin C}$. Thus $b=\\dfrac{c \\sin B}{\\sin C}=\\dfrac{\\var{c3}* \\var{t51}}{\\var{u3}}=\\var{c3*t51/u3}$. The closest integer is then $\\var{b3}$. Note that this solution uses the 3dp value of $B$; the answer using $\\var{bb41}$ would give a slightly different long decimal value of $b$, but the integer value would be the same.

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}