// Numbas version: exam_results_page_options {"name": "Q3 Solve for x and y on a given triangle", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {"tri": {"definition": "\nvar c = document.createElement('canvas');\n $(c).attr('width',900).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(300,(800-(y*8)));\n context.lineTo((x*8+300),800-(y*8));\n context.lineTo((x*8+300),(800));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = x+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((8*x)/2)),790-(y*8));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = x1+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((8*x)/8)),(800-((y*8)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = 'X';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(315),(815-(y*8)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'y';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(310+((8*x))),(800-((y*8)/2)));\n \n return c;\n\n ", "type": "html", "parameters": [["x", "number"], ["x1", "number"], ["y", "number"]], "language": "javascript"}, "tri3": {"definition": "var c = document.createElement('canvas');\n $(c).attr('width',900).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(100,800);\n context.lineTo((l*8+100),800);\n context.lineTo((l2*8+100),(800-(h*8)));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = l+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(((8*l)/2)),(820));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'x';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(100+(4*(8*l))/5),(800-((h*8)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'y';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(100+((8*l)/5)),(800-((h*8)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = a1 + '\\xB0';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(90+((l2*8))),(845-((h*8))));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = a2 + '\\xB0';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(120),(790));\n\n \n\n return c;\n ", "type": "html", "parameters": [["l", "number"], ["x", "number"], ["y", "number"], ["a1", "number"], ["a2", "number"], ["h", "number"], ["l2", "number"]], "language": "javascript"}, "tri2": {"definition": "\nvar c = document.createElement('canvas');\n $(c).attr('width',900).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(200,800);\n context.lineTo((x*10+200),800);\n context.lineTo((200),(800-(l2*10)));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'x';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(200+((10*x)/2)),(820));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = 'Y';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(150+(10*x)),790);\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = l1+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(210+(10*x)/2),(800-((l2*10)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = l2+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,140,(800-((l2*10)/2)));\n\n \n return c;\n ", "type": "html", "parameters": [["l1", "number"], ["l2", "number"], ["x", "number"]], "language": "javascript"}}, "ungrouped_variables": ["lent12", "lent11", "ans12", "ans11", "ans21", "lent21", "ans22", "ang31", "lent31", "ans31", "ang32", "ans32", "h3", "ans33", "l2", "lent22"], "name": "Q3 Solve for x and y on a given triangle", "tags": ["rebelmaths", "Trigonometry"], "advice": "

i) $\\frac{\\var{lent21}}{\\sin(90^{\\circ})} = \\frac{\\var{lent22}}{\\sin(Y^{\\circ})}$

\n

$\\sin(Y^{\\circ}) = \\var{lent22} \\div \\frac{\\var{lent21}}{\\sin(90^{\\circ})}$

\n

$Y = \\var{ans21}^{\\circ}$

\n

$\\frac{\\var{lent21}}{\\sin(90^{\\circ})} = \\frac{x}{\\sin(90^{\\circ}-\\var{ans21})}$

\n

$x = \\frac{\\var{lent21}}{\\sin(90^{\\circ})} \\times \\sin(90^{\\circ}-\\var{ans21}^{\\circ}) = \\var{ans22}mm$

\n

\n

ii) $y^2 + \\var{lent11}^2 = \\var{lent12}^2 $

\n

$y^2  = \\var{lent12}^2 - \\var{lent11}^2 $

\n

$y  = \\sqrt(\\var{lent12}^2 - \\var{lent11}^2) = \\var{ans11}mm$

\n

$\\frac{\\var{lent12}}{\\sin(90^{\\circ})} = \\frac{\\var{ans21}}{\\sin(x^{\\circ})}$

\n

$\\sin(x^{\\circ}) = \\var{ans21} \\div \\frac{\\var{lent12}}{\\sin(90^{\\circ})}$

\n

$x = \\var{ans12}^{\\circ}$

\n

", "rulesets": {}, "parts": [{"stepsPenalty": 0, "prompt": "

Find the values of x and y:

\n

Note:The bottom left angle is a right angle (90$^{\\circ}$).

\n

{tri2(lent21,lent22,ans22)}

\n

x = [[0]]mm

\n

y = [[1]] $^{\\circ}$

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "{ans22}", "minValue": "{ans22}", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "{ans21}", "minValue": "{ans21}", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

To find x: Use Pythagoras Theorem to find the missing side.

\n

To find y: For the most accurate answer use the sides that were given. What trigonometric ratio includes those two sides? Sin. Remember to use inverse-sin to find the angle.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "type": "gapfill"}, {"prompt": "

Find the values of x and y:

\n

Note:The top right angle is a right angle (90$^{\\circ}$).

\n

\n

{tri(lent11,lent12,ans12)}

\n

x = [[0]] $^{\\circ}$

\n

y = [[1]] mm

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "{ans12}", "minValue": "{ans12}", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "{ans11}", "minValue": "{ans11}", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Solve the following mensuration questions to 2 decimal places:

\n

Note: You may need to scroll down to see the diagrams.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"lent31": {"definition": "random(72..98#2)", "templateType": "anything", "group": "Ungrouped variables", "name": "lent31", "description": ""}, "lent12": {"definition": "random(41..51#2)", "templateType": "anything", "group": "Ungrouped variables", "name": "lent12", "description": ""}, "ang31": {"definition": "random(71..85)", "templateType": "anything", "group": "Ungrouped variables", "name": "ang31", "description": ""}, "ang32": {"definition": "random(47..55)", "templateType": "anything", "group": "Ungrouped variables", "name": "ang32", "description": ""}, "lent11": {"definition": "random(20..28#5)", "templateType": "anything", "group": "Ungrouped variables", "name": "lent11", "description": ""}, "ans12": {"definition": "90-(degrees(arcsin(lent11/(lent12/(sin(radians(90)))))))", "templateType": "anything", "group": "Ungrouped variables", "name": "ans12", "description": ""}, "ans11": {"definition": "sqrt(lent12^2 - lent11^2)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans11", "description": ""}, "l2": {"definition": "(ans32/(sin(radians(90))))*sin(radians(180-(ang32+90)))", "templateType": "anything", "group": "Ungrouped variables", "name": "l2", "description": ""}, "lent22": {"definition": "random(35..48)", "templateType": "anything", "group": "Ungrouped variables", "name": "lent22", "description": ""}, "lent21": {"definition": "random(55..75)", "templateType": "anything", "group": "Ungrouped variables", "name": "lent21", "description": ""}, "h3": {"definition": "(ans32/(sin(radians(90))))*sin(radians(ang32))", "templateType": "anything", "group": "Ungrouped variables", "name": "h3", "description": ""}, "ans31": {"definition": "(lent31/(sin(radians(ang31))))*sin(radians(ang32))", "templateType": "anything", "group": "Ungrouped variables", "name": "ans31", "description": ""}, "ans32": {"definition": "(lent31/(sin(radians(ang31))))*sin(radians(180-(ang32+ang31)))", "templateType": "anything", "group": "Ungrouped variables", "name": "ans32", "description": ""}, "ans33": {"definition": "0.5*lent31*h3", "templateType": "anything", "group": "Ungrouped variables", "name": "ans33", "description": ""}, "ans22": {"definition": "(lent21/(sin(radians(90))))*sin(radians(90-(ans21)))", "templateType": "anything", "group": "Ungrouped variables", "name": "ans22", "description": ""}, "ans21": {"definition": "degrees(arcsin(lent22/(lent21/(sin(radians(90))))))", "templateType": "anything", "group": "Ungrouped variables", "name": "ans21", "description": ""}}, "metadata": {"description": "

Find angle and side in a right angled triangle.

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}