// Numbas version: exam_results_page_options {"name": "cormac's copy of Apply the cosine rule", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "cormac's copy of Apply the cosine rule", "tags": [], "advice": "

a) Use the Cosine Rule to find $a$: $a^2=b^2+c^2-2bc \\cos A$.   

\n

\\[a^2=\\var{b0}^2+\\var{c0}^2-2 \\times \\var{b0}\\times\\var{c0} \\times \\cos (\\var{aa0})=\\var{b0^2}+\\var{c0^2}-\\var{2*b0*c0} \\times \\var{cos (aa0)}\\]

\n

\\[=\\var{b0^2+c0^2-2*b0*c0* cos (aa0)}.\\]

\n

Hence $a=\\sqrt{\\var{b0^2+c0^2-2*b0*c0* cos (aa0)}}=\\var{sqrt(b0^2+c0^2-2*b0*c0* cos (aa0))}$. To the nearest integer, this is $\\var{a0}$.

\n

b) Use the Cosine Rule to find $b$: $b^2=a^2+c^2-2ac \\cos B$.   

\n

\\[b^2=\\var{a3}^2+\\var{c3}^2-2 \\times \\var{a3}\\times\\var{c3} \\times \\cos (\\var{bb3})=\\var{a3^2}+\\var{c3^2}-\\var{2*a3*c3} \\times \\var{cos (bb3)}\\]

\n

\\[=\\var{a3^2+c3^2-2*a3*c3* cos (bb3)}.\\]

\n

Hence $b=\\sqrt{\\var{a3^2+c3^2-2*a3*c3* cos (bb3)}}=\\var{sqrt(a3^2+c3^2-2*a3*c3* cos (bb3))}$. To the nearest integer, this is $\\var{b3}$.

", "variablesTest": {"maxRuns": 100, "condition": ""}, "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 (i.e. the sides opposite angles A,B and C are called a,b and crespectively). 

\n

Given the following two sides and an angle, determine the third side length. Write down the side length as a whole number.

\n

\n

", "functions": {}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "ungrouped_variables": ["c4", "s3", "cc0", "temp2", "temp1", "b0", "cc3", "b3", "u2", "q0", "q3", "c0", "cc5", "s2", "s0", "cc1", "u0", "u3", "cc2", "aa5", "aa4", "aa1", "aa0", "aa3", "aa2", "x2", "c31", "c32", "a0", "a3", "bb0", "s5", "c3", "c2", "c1", "x1", "c02", "x4", "x5", "p3", "p0", "r0", "r3", "bb3", "t5", "t2", "t3", "t0", "u5", "c5", "cc4", "c01", "bb5", "bb4", "check2", "bb2", "bb1", "check1"], "variables": {"q3": {"name": "q3", "templateType": "anything", "description": "", "definition": "(a3^2+c3^2-b3^2)/(2*a3*c3)", "group": "Ungrouped variables"}, "aa4": {"name": "aa4", "templateType": "anything", "description": "", "definition": "pi-BB3-CC3", "group": "Ungrouped variables"}, "c02": {"name": "c02", "templateType": "anything", "description": "", "definition": "ceil(min(a0,b0)*0.05)", "group": "Ungrouped variables"}, "s0": {"name": "s0", "templateType": "anything", "description": "", "definition": "sin(aa0)", "group": "Ungrouped variables"}, "c1": {"name": "c1", "templateType": "anything", "description": "", "definition": "max(c01,c02)", "group": "Ungrouped variables"}, "x4": {"name": "x4", "templateType": "anything", "description": "", "definition": "abs(a3^2-b3^2)", "group": "Ungrouped variables"}, "aa5": {"name": "aa5", "templateType": "anything", "description": "", "definition": "precround(AA4,3)", "group": "Ungrouped variables"}, "c31": {"name": "c31", "templateType": "anything", "description": "", "definition": "ceil(sqrt(x4))", "group": "Ungrouped variables"}, "p3": {"name": "p3", "templateType": "anything", "description": "", "definition": "(c3^2+b3^2-a3^2)/(2*c3*b3)", "group": "Ungrouped variables"}, "s2": {"name": "s2", "templateType": "anything", "description": "", "definition": "sin(aa2)", "group": "Ungrouped variables"}, "t0": {"name": "t0", "templateType": "anything", "description": "", "definition": "sin(bb0)", "group": "Ungrouped variables"}, "c4": {"name": "c4", "templateType": "anything", "description": "", "definition": "max(c31,c32)", "group": "Ungrouped variables"}, "cc5": {"name": "cc5", "templateType": "anything", "description": "", "definition": "precround(CC4,3)", "group": "Ungrouped variables"}, "temp2": {"name": "temp2", "templateType": "anything", "description": "", "definition": "b0-temp1", "group": "Ungrouped variables"}, "aa1": {"name": "aa1", "templateType": "anything", "description": "", "definition": "pi-bb0-cc0", "group": "Ungrouped variables"}, "s5": {"name": "s5", "templateType": "anything", "description": "", "definition": "sin(AA5)", "group": "Ungrouped variables"}, "b0": {"name": "b0", "templateType": "anything", "description": "", "definition": "random(10..25)", "group": "Ungrouped variables"}, "b3": {"name": "b3", "templateType": "anything", "description": "", "definition": "random(7..20)", "group": "Ungrouped variables"}, "cc4": {"name": "cc4", "templateType": "anything", "description": "", "definition": "pi-AA3-BB3", "group": "Ungrouped variables"}, "bb3": {"name": "bb3", "templateType": "anything", "description": "", "definition": "precround(arccos(q3),4)", "group": "Ungrouped variables"}, "c01": {"name": "c01", "templateType": "anything", "description": "", "definition": "ceil(sqrt(x1))", "group": "Ungrouped variables"}, "q0": {"name": "q0", "templateType": "anything", "description": "", "definition": "(a0^2+c0^2-b0^2)/(2*a0*c0)", "group": "Ungrouped variables"}, "c32": {"name": "c32", "templateType": "anything", "description": "", "definition": "ceil(min(a3,b3)*0.05)", "group": "Ungrouped variables"}, "c0": {"name": "c0", "templateType": "anything", "description": "", "definition": "random(c1..c2 except 0)", "group": "Ungrouped variables"}, "r3": {"name": "r3", "templateType": "anything", "description": "", "definition": "(a3^2+b3^2-c3^2)/(2*a3*b3)", "group": "Ungrouped variables"}, "cc2": {"name": "cc2", "templateType": "anything", "description": "", "definition": "precround(cc1,3)", "group": "Ungrouped variables"}, "a3": {"name": "a3", "templateType": "anything", "description": "", "definition": "random(7..20)", "group": "Ungrouped variables"}, "aa3": {"name": "aa3", "templateType": "anything", "description": "", "definition": "precround(arccos(p3),4)", "group": "Ungrouped variables"}, "cc1": {"name": "cc1", "templateType": "anything", "description": "", "definition": "pi-aa0-bb0", "group": "Ungrouped variables"}, "c5": {"name": "c5", "templateType": "anything", "description": "", "definition": "floor(sqrt(x5))", "group": "Ungrouped variables"}, "t5": {"name": "t5", "templateType": "anything", "description": "", "definition": "sin(BB5)", "group": "Ungrouped variables"}, "t3": {"name": "t3", "templateType": "anything", "description": "", "definition": "sin(BB3)", "group": "Ungrouped variables"}, "c3": {"name": "c3", "templateType": "anything", "description": "", "definition": "random(c4..c5 except 0)", "group": "Ungrouped variables"}, "x5": {"name": "x5", "templateType": "anything", "description": "", "definition": "a3^2+b3^2", "group": "Ungrouped variables"}, "bb0": {"name": "bb0", "templateType": "anything", "description": "", "definition": "precround(arccos(q0),4)", "group": "Ungrouped variables"}, "check2": {"name": "check2", "templateType": "anything", "description": "", "definition": "pi-AA3-BB3-CC3", "group": "Ungrouped variables"}, "s3": {"name": "s3", "templateType": "anything", "description": "", "definition": "sin(AA3)", "group": "Ungrouped variables"}, "p0": {"name": "p0", "templateType": "anything", "description": "", "definition": "(c0^2+b0^2-a0^2)/(2*c0*b0)", "group": "Ungrouped variables"}, "c2": {"name": "c2", "templateType": "anything", "description": "", "definition": "floor(sqrt(x2))", "group": "Ungrouped variables"}, "bb1": {"name": "bb1", "templateType": "anything", "description": "", "definition": "pi-aa0-cc0", "group": "Ungrouped variables"}, "temp1": {"name": "temp1", "templateType": "anything", "description": "", "definition": "a0*t0/s0", "group": "Ungrouped variables"}, "x2": {"name": "x2", "templateType": "anything", "description": "", "definition": "a0^2+b0^2", "group": "Ungrouped variables"}, "aa0": {"name": "aa0", "templateType": "anything", "description": "", "definition": "precround(arccos(p0),4)", "group": "Ungrouped variables"}, "a0": {"name": "a0", "templateType": "anything", "description": "", "definition": "random(10..25)", "group": "Ungrouped variables"}, "check1": {"name": "check1", "templateType": "anything", "description": "", "definition": "pi-AA0-BB0-CC0", "group": "Ungrouped variables"}, "bb5": {"name": "bb5", "templateType": "anything", "description": "", "definition": "precround(BB4,3)", "group": "Ungrouped variables"}, "bb2": {"name": "bb2", "templateType": "anything", "description": "", "definition": "precround(bb1,3)", "group": "Ungrouped variables"}, "u5": {"name": "u5", "templateType": "anything", "description": "", "definition": "sin(CC5)", "group": "Ungrouped variables"}, "r0": {"name": "r0", "templateType": "anything", "description": "", "definition": "(a0^2+b0^2-c0^2)/(2*a0*b0)", "group": "Ungrouped variables"}, "aa2": {"name": "aa2", "templateType": "anything", "description": "", "definition": "precround(aa1,3)", "group": "Ungrouped variables"}, "cc0": {"name": "cc0", "templateType": "anything", "description": "", "definition": "precround(arccos(r0),4)", "group": "Ungrouped variables"}, "u0": {"name": "u0", "templateType": "anything", "description": "", "definition": "sin(cc0)", "group": "Ungrouped variables"}, "t2": {"name": "t2", "templateType": "anything", "description": "", "definition": "sin(bb2)", "group": "Ungrouped variables"}, "u2": {"name": "u2", "templateType": "anything", "description": "", "definition": "sin(cc2)", "group": "Ungrouped variables"}, "u3": {"name": "u3", "templateType": "anything", "description": "", "definition": "sin(CC3)", "group": "Ungrouped variables"}, "bb4": {"name": "bb4", "templateType": "anything", "description": "", "definition": "pi-AA3-CC3", "group": "Ungrouped variables"}, "x1": {"name": "x1", "templateType": "anything", "description": "", "definition": "abs(a0^2-b0^2)", "group": "Ungrouped variables"}, "cc3": {"name": "cc3", "templateType": "anything", "description": "", "definition": "precround(arccos(r3),4)", "group": "Ungrouped variables"}}, "variable_groups": [], "extensions": [], "preamble": {"js": "", "css": ""}, "metadata": {"description": "

Two questions testing the application of the Cosine Rule when given two sides and an angle. In these questions, the triangle is always acute and both of the given side lengths are adjacent to the given angle.

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"showCorrectAnswer": true, "scripts": {}, "marks": 0, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "

$A=\\var{AA0}$, $b=\\var{b0}$, $c=\\var{c0}$

\n

Side length $a=$ [[0]]

", "sortAnswers": false, "variableReplacements": [], "gaps": [{"minValue": "{a0}", "showCorrectAnswer": true, "scripts": {}, "marks": 2, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "maxValue": "{a0}", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "allowFractions": false, "variableReplacements": [], "correctAnswerFraction": false, "unitTests": [], "type": "numberentry", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0}], "unitTests": [], "type": "gapfill", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}, {"showCorrectAnswer": true, "scripts": {}, "marks": 0, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "

$B=\\var{BB3}$, $a=\\var{a3}$, $c=\\var{c3}$

\n

Side length $b=$ [[0]]

", "sortAnswers": false, "variableReplacements": [], "gaps": [{"minValue": "{b3}", "showCorrectAnswer": true, "scripts": {}, "marks": 2, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "maxValue": "{b3}", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "allowFractions": false, "variableReplacements": [], "correctAnswerFraction": false, "unitTests": [], "type": "numberentry", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0}], "unitTests": [], "type": "gapfill", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}], "type": "question", "contributors": [{"name": "cormac breen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/306/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "cormac breen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/306/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}