// Numbas version: finer_feedback_settings {"question_groups": [{"name": "Group", "pickQuestions": 1, "pickingStrategy": "all-ordered", "questions": [{"name": "Transformation - Enlargement", "extensions": [], "custom_part_types": [], "resources": [["question-resources/graph_enlargement_rectangle_pos2_00.svg", "/srv/numbas/media/question-resources/graph_enlargement_rectangle_pos2_00.svg"], ["question-resources/graph_enlargement_rightangle_pos2_00.svg", "/srv/numbas/media/question-resources/graph_enlargement_rightangle_pos2_00.svg"], ["question-resources/graph_enlargement_triangle_pos2_00.svg", "/srv/numbas/media/question-resources/graph_enlargement_triangle_pos2_00.svg"], ["question-resources/graph_enlargement_rectangle_pos2_00_correct_image.svg", "/srv/numbas/media/question-resources/graph_enlargement_rectangle_pos2_00_correct_image.svg"], ["question-resources/graph_enlargement_rightangle_pos2_00_correct_image.svg", "/srv/numbas/media/question-resources/graph_enlargement_rightangle_pos2_00_correct_image.svg"], ["question-resources/graph_enlargement_triangle_pos2_00_correct_image.svg", "/srv/numbas/media/question-resources/graph_enlargement_triangle_pos2_00_correct_image.svg"], ["question-resources/graph_enlargement_triangle_neg2_00_EoiLScE.svg", "/srv/numbas/media/question-resources/graph_enlargement_triangle_neg2_00_EoiLScE.svg"], ["question-resources/graph_enlargement_triangle_neg2_00_correct_image_2mu3W4r.svg", "/srv/numbas/media/question-resources/graph_enlargement_triangle_neg2_00_correct_image_2mu3W4r.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}], "variable_groups": [{"variables": ["enlargement_images", "images", "chosen_image", "answer_scale", "correct_image", "answer_x", "answer_y"], "name": "Translation"}], "functions": {}, "rulesets": {}, "ungrouped_variables": [], "metadata": {"description": "

Identify the centre of enlargement and the scale factor in a transformation of an image A to an image B

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "advice": "

You can find how image A has been enlarged to transform onto image B by drawing lines between the vertices of the image and extending them till they intersect.

\n

{image('resources/question-resources/'+chosen_image[\"correct_image\"])}

\n

The centre of enlargement is the point where all the lines intersect. In this case, the centre of enlargement is $(\\var{answer_x},\\var{answer_y})$.

\n

To find the scale factor, identify a point on A and the corresponding point on B, and look at the coordinates of each relative to the centre of enlargement.

\n

The relative coordinates of the point on B are obtained by multiplying the relative coordinates of the point on A.

\n

From the graph we can see the scale factor is $\\var{answer_scale}$.

", "statement": "

Describe the transformation of image A to image B.

\n

{image('resources/question-resources/'+chosen_image[\"image\"])}

", "preamble": {"js": "", "css": ""}, "variables": {"answer_y": {"name": "answer_y", "description": "", "templateType": "anything", "group": "Translation", "definition": "chosen_image[\"answer_y\"]"}, "correct_image": {"name": "correct_image", "description": "", "templateType": "anything", "group": "Translation", "definition": "chosen_image[\"correct_image\"]"}, "answer_scale": {"name": "answer_scale", "description": "", "templateType": "anything", "group": "Translation", "definition": "chosen_image[\"answer_scale\"]"}, "answer_x": {"name": "answer_x", "description": "", "templateType": "anything", "group": "Translation", "definition": "chosen_image[\"answer_x\"]"}, "enlargement_images": {"name": "enlargement_images", "description": "

Is a list of the images in the images in the questions.

", "templateType": "anything", "group": "Translation", "definition": "['graph_enlargement_triangle_pos2_00.svg','graph_enlargement_triangle_neg2_00bJC2lDk.svg','graph_enlargement_rightangle_pos2_00.svg','graph_enlargement_rectangle_pos2_00.svg']"}, "chosen_image": {"name": "chosen_image", "description": "", "templateType": "anything", "group": "Translation", "definition": "random(images)"}, "images": {"name": "images", "description": "

Uses JSON data to select the answer based on the image that is selected.

", "templateType": "json", "group": "Translation", "definition": "json_decode(safe(\"[\\n {\\n \\\"image\\\": \\\"graph_enlargement_triangle_pos2_00.svg\\\",\\n \\\"answer_x\\\": 0,\\n \\\"answer_y\\\": 0,\\n \\\"answer_scale\\\": 2,\\n \\\"correct_image\\\": \\\"graph_enlargement_triangle_pos2_00_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_enlargement_triangle_neg2_00_EoiLScE.svg\\\",\\n \\\"answer_x\\\": 0,\\n \\\"answer_y\\\": 0,\\n \\\"answer_scale\\\": -2,\\n \\\"correct_image\\\": \\\"graph_enlargement_triangle_neg2_00_correct_image_2mu3W4r.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_enlargement_rightangle_pos2_00.svg\\\",\\n \\\"answer_x\\\": 0,\\n \\\"answer_y\\\": 0,\\n \\\"answer_scale\\\": 2,\\n \\\"correct_image\\\": \\\"graph_enlargement_rightangle_pos2_00_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_enlargement_rectangle_pos2_00.svg\\\",\\n \\\"answer_x\\\": 0,\\n \\\"answer_y\\\": 0,\\n \\\"answer_scale\\\": 2,\\n \\\"correct_image\\\": \\\"graph_enlargement_rectangle_pos2_00_correct_image.svg\\\"\\n }\\n]\"))"}}, "parts": [{"variableReplacementStrategy": "originalfirst", "prompt": "

Centre of enlargement: ([[0]], [[1]])

", "gaps": [{"variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "maxValue": "{answer_x}", "allowFractions": false, "mustBeReducedPC": 0, "minValue": "{answer_x}", "mustBeReduced": false, "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "marks": 1, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "maxValue": "{answer_y}", "allowFractions": false, "mustBeReducedPC": 0, "minValue": "{answer_y}", "mustBeReduced": false, "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "marks": 1, "scripts": {}}], "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "type": "gapfill", "marks": 0, "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "prompt": "

Scale factor: [[0]]

", "gaps": [{"variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "maxValue": "{answer_scale}", "allowFractions": false, "mustBeReducedPC": 0, "minValue": "{answer_scale}", "mustBeReduced": false, "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "marks": 1, "scripts": {}}], "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "type": "gapfill", "marks": 0, "showCorrectAnswer": true}], "tags": ["centre of enlargement", "Centre of enlargement", "Enlargement", "enlargement", "Scale factor", "scale factor", "taxonomy", "transformation", "Transformation"], "variablesTest": {"maxRuns": 100, "condition": ""}}, {"name": "Transformation - Reflection", "extensions": [], "custom_part_types": [], "resources": [["question-resources/graph_reflection_circ_x_zsnE02O.svg", "/srv/numbas/media/question-resources/graph_reflection_circ_x_zsnE02O.svg"], ["question-resources/graph_reflection_circ_x_correct_oKe609k.svg", "/srv/numbas/media/question-resources/graph_reflection_circ_x_correct_oKe609k.svg"], ["question-resources/graph_reflection_circ_y_gx01gno.svg", "/srv/numbas/media/question-resources/graph_reflection_circ_y_gx01gno.svg"], ["question-resources/graph_reflection_circ_y_correct_O200k08.svg", "/srv/numbas/media/question-resources/graph_reflection_circ_y_correct_O200k08.svg"], ["question-resources/graph_reflection_circle_yx_6UIuin2.svg", "/srv/numbas/media/question-resources/graph_reflection_circle_yx_6UIuin2.svg"], ["question-resources/graph_reflection_circle_yx_correct_qTO6FYY.svg", "/srv/numbas/media/question-resources/graph_reflection_circle_yx_correct_qTO6FYY.svg"], ["question-resources/graph_reflection_rect_x_TIdTdJL.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_x_TIdTdJL.svg"], ["question-resources/graph_reflection_rect_x_correct_Rs0CpMG.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_x_correct_Rs0CpMG.svg"], ["question-resources/graph_reflection_rect_y_MmV3ZAK.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_y_MmV3ZAK.svg"], ["question-resources/graph_reflection_rect_y_correct_Robg15m.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_y_correct_Robg15m.svg"], ["question-resources/graph_reflection_rect_yx_76qXVib.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_yx_76qXVib.svg"], ["question-resources/graph_reflection_rect_yx_correct_ojRIhWk.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_yx_correct_ojRIhWk.svg"], ["question-resources/graph_reflection_triangle_x_wjCxAeu.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_x_wjCxAeu.svg"], ["question-resources/graph_reflection_triangle_x_correct_bf48jod.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_x_correct_bf48jod.svg"], ["question-resources/graph_reflection_triangle_y_PN3pJ31.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_y_PN3pJ31.svg"], ["question-resources/graph_reflection_triangle_y_correct_vRjIlRy.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_y_correct_vRjIlRy.svg"], ["question-resources/graph_reflection_triangle_y-x_9JedlAc.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_y-x_9JedlAc.svg"], ["question-resources/graph_reflection_triangle_y-x_correct_hte3xZa.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_y-x_correct_hte3xZa.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}], "rulesets": {}, "functions": {}, "ungrouped_variables": [], "metadata": {"description": "

Determine the way in which an image A has been reflected onto an image B.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "variable_groups": [{"variables": ["images", "chosen_image", "distractors", "answer", "correct_image"], "name": "Reflection"}], "advice": "

The line of reflection is {chosen_image['answer']}. This is represented as a green dashed line on the graph below.

\n

{image('resources/question-resources/'+chosen_image[\"correct_image\"])}

", "statement": "

Determine how the image A has been reflected onto image B.

", "preamble": {"js": "", "css": ""}, "variables": {"answer": {"templateType": "anything", "description": "

Takes the correct answer from chosen_image.

", "name": "answer", "group": "Reflection", "definition": "chosen_image[\"answer\"]"}, "chosen_image": {"templateType": "anything", "description": "

Takes from images the chosen image and it's variables

", "name": "chosen_image", "group": "Reflection", "definition": "random(images)"}, "distractors": {"templateType": "anything", "description": "

Takes the distractors from chosen_image.

", "name": "distractors", "group": "Reflection", "definition": "chosen_image[\"distractors\"]"}, "correct_image": {"templateType": "anything", "description": "

Takes the correct image (the advice) from chosen_image

", "name": "correct_image", "group": "Reflection", "definition": "chosen_image[\"correct_image\"]"}, "images": {"templateType": "json", "description": "

Uses JSON data to assign answers with images and distractors (other options when answering)

\n

", "name": "images", "group": "Reflection", "definition": "json_decode(safe(\"[\\n {\\n \\\"image\\\": \\\"graph_reflection_circ_x_zsnE02O.svg\\\",\\n \\\"answer\\\": \\\"y = 0\\\",\\n \\\"correct_image\\\": \\\"graph_reflection_circ_x_correct_oKe609k.svg\\\",\\n \\\"distractors\\\": [\\\"x = 0\\\", \\\"y = x\\\", \\\"y = -x\\\"]\\n },\\n {\\n \\\"image\\\": \\\"graph_reflection_triangle_y_PN3pJ31.svg\\\",\\n \\\"correct_image\\\": \\\"graph_reflection_triangle_y_correct_vRjIlRy.svg\\\",\\n \\\"answer\\\": \\\"x = 0\\\",\\n \\\"distractors\\\": [\\\"y = -x\\\", \\\"y = 0\\\", \\\"y = x\\\"] \\n },\\n {\\n \\\"image\\\": \\\"graph_reflection_triangle_x_wjCxAeu.svg\\\",\\n \\\"correct_image\\\": \\\"graph_reflection_triangle_x_correct_bf48jod.svg\\\",\\n \\\"answer\\\": \\\"y = 0\\\",\\n \\\"distractors\\\": [\\\"x = 0\\\", \\\"y = x\\\", \\\"y = -x\\\"] \\n },\\n {\\n \\\"image\\\": \\\"graph_reflection_triangle_y-x_9JedlAc.svg\\\",\\n \\\"correct_image\\\": \\\"graph_reflection_triangle_y-x_correct_hte3xZa.svg\\\",\\n \\\"answer\\\": \\\"y = -x\\\",\\n \\\"distractors\\\": [\\\"x = 0\\\", \\\"y = 0\\\", \\\"y = x\\\"] \\n },\\n {\\n \\\"image\\\": \\\"graph_reflection_rect_x_TIdTdJL.svg\\\",\\n \\\"correct_image\\\": \\\"graph_reflection_rect_x_correct_Rs0CpMG.svg\\\",\\n \\\"answer\\\": \\\"y = 0\\\",\\n \\\"distractors\\\": [\\\"x = 0\\\", \\\"y = x\\\", \\\"y = -x\\\"] \\n },\\n {\\n \\\"image\\\": \\\"graph_reflection_rect_yx_76qXVib.svg\\\",\\n \\\"correct_image\\\": \\\"graph_reflection_rect_yx_correct_ojRIhWk.svg\\\",\\n \\\"answer\\\": \\\"y = x\\\",\\n \\\"distractors\\\": [\\\"x = 0\\\", \\\"y = 0\\\", \\\"y = -x\\\"] \\n },\\n {\\n \\\"image\\\": \\\"graph_reflection_rect_y_MmV3ZAK.svg\\\",\\n \\\"correct_image\\\": \\\"graph_reflection_rect_y_correct_Robg15m.svg\\\",\\n \\\"answer\\\": \\\"x = 0\\\",\\n \\\"distractors\\\": [\\\"y = x\\\", \\\"y = 0\\\", \\\"y = -x\\\"] \\n },\\n {\\n \\\"image\\\": \\\"graph_reflection_circle_yx_6UIuin2.svg\\\",\\n \\\"correct_image\\\": \\\"graph_reflection_circle_yx_correct_qTO6FYY.svg\\\",\\n \\\"answer\\\": \\\"y = x\\\",\\n \\\"distractors\\\": [\\\"x = 0\\\", \\\"y = 0\\\", \\\"y = -x\\\"] \\n },\\n {\\n \\\"image\\\": \\\"graph_reflection_circ_y_gx01gno.svg\\\",\\n \\\"correct_image\\\": \\\"graph_reflection_circ_y_correct_O200k08.svg\\\",\\n \\\"answer\\\": \\\"x = 0\\\",\\n \\\"distractors\\\": [\\\"y = x\\\", \\\"y = 0\\\", \\\"y = -x\\\"] \\n }\\n]\"))"}}, "parts": [{"variableReplacementStrategy": "originalfirst", "choices": ["

$\\var{latex(answer)}$

", "

$\\var{latex(distractors[0])}$

", "

$\\var{latex(distractors[1])}$

", "

$\\var{latex(distractors[2])}$

"], "matrix": ["1", 0, 0, 0], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "prompt": "

{image('resources/question-resources/'+chosen_image[\"image\"])}

\n

Reflection in the line:

", "variableReplacements": [], "showFeedbackIcon": true, "displayType": "radiogroup", "shuffleChoices": true, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "tags": ["reflection", "Reflection", "taxonomy", "transformation", "Transformation"], "variablesTest": {"maxRuns": 100, "condition": ""}}, {"name": "Transformation - Translation", "extensions": [], "custom_part_types": [], "resources": [["question-resources/graph_translation_rectangle_pos0neg6.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos0neg6.svg"], ["question-resources/graph_translation_rectangle_pos12neg6.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos12neg6.svg"], ["question-resources/graph_translation_rectangle_pos14pos6.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos14pos6.svg"], ["question-resources/graph_translation_rectangle_pos14pos8.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos14pos8.svg"], ["question-resources/graph_translation_rightangle_neg4neg6.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_neg4neg6.svg"], ["question-resources/graph_translation_rightangle_neg8pos2.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_neg8pos2.svg"], ["question-resources/graph_translation_rightangle_pos6pos8.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_pos6pos8.svg"], ["question-resources/graph_translation_rightangle_pos20neg4.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_pos20neg4.svg"], ["question-resources/graph_translation_triangle_neg10neg6.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg10neg6.svg"], ["question-resources/graph_translation_triangle_neg20pos2.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg20pos2.svg"], ["question-resources/graph_translation_triangle_neg22neg10.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg22neg10.svg"], ["question-resources/graph_translation_triangle_pos0neg10.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos0neg10.svg"], ["question-resources/graph_translation_triangle_pos2neg10.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos2neg10.svg"], ["question-resources/graph_translation_triangle_pos8pos0.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos8pos0.svg"], ["question-resources/graph_translation_rectangle_pos0neg6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos0neg6_correct_image.svg"], ["question-resources/graph_translation_rectangle_pos12neg6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos12neg6_correct_image.svg"], ["question-resources/graph_translation_rectangle_pos14pos6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos14pos6_correct_image.svg"], ["question-resources/graph_translation_rectangle_pos14pos8_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos14pos8_correct_image.svg"], ["question-resources/graph_translation_rightangle_neg4neg6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_neg4neg6_correct_image.svg"], ["question-resources/graph_translation_rightangle_neg8pos2_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_neg8pos2_correct_image.svg"], ["question-resources/graph_translation_rightangle_pos6pos8_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_pos6pos8_correct_image.svg"], ["question-resources/graph_translation_rightangle_pos20neg4_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_pos20neg4_correct_image.svg"], ["question-resources/graph_translation_triangle_neg10neg6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg10neg6_correct_image.svg"], ["question-resources/graph_translation_triangle_neg20pos2_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg20pos2_correct_image.svg"], ["question-resources/graph_translation_triangle_neg22neg10_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg22neg10_correct_image.svg"], ["question-resources/graph_translation_triangle_pos0neg10_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos0neg10_correct_image.svg"], ["question-resources/graph_translation_triangle_pos2neg10_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos2neg10_correct_image.svg"], ["question-resources/graph_translation_triangle_pos8pos0_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos8pos0_correct_image.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}], "rulesets": {}, "functions": {}, "ungrouped_variables": [], "metadata": {"description": "

Describe a given linear transformation as a vector in Cartesian coordinates.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "variable_groups": [{"variables": ["translation_images", "images", "chosen_image", "answer_x", "answer_y", "correct_image", "word_x", "word_y"], "name": "Reflection"}], "advice": "

To find the translation, we need to find the amount of translation (movement) in the x direction and the y direction to form a column vector.

\n

This can be done by selecting a fixed point on image A and finding the x distance and y distance between it and the same point on image B.

\n

Moving from left to right / bottom to top on the graph is a positive translation.
Moving from right to left / top to bottom on the graph is a negative translation.

\n

The graph below show the translation from image A to image B.
This shows a {word_x} x translation by {answer_x} and {word_y} y translation by {answer_y}.

\n

{image('resources/question-resources/'+chosen_image[\"correct_image\"])}

", "statement": "

Describe the transformation which moves image A onto image B.

\n

Your answer will be in the form \\begin{pmatrix}x \\\\ y\\end{pmatrix}

", "preamble": {"js": "", "css": ""}, "variables": {"answer_y": {"templateType": "anything", "description": "

Takes the y coordinate correct answer from chosen_image.

", "name": "answer_y", "group": "Reflection", "definition": "chosen_image[\"answer_y\"]"}, "word_y": {"templateType": "anything", "description": "

Allows the student to know whether their y value moves in the positive or negative direction.

", "name": "word_y", "group": "Reflection", "definition": "if(answer_y > 0, \"a positive\",\n //else\n if(answer_y < 0, \"a negative\",\n //else\n \"no\"\n )\n)"}, "chosen_image": {"templateType": "anything", "description": "

Takes from images the chosen image and it's variables

", "name": "chosen_image", "group": "Reflection", "definition": "random(images)"}, "answer_x": {"templateType": "anything", "description": "

Takes the x coordinate correct answer from chosen_image.

", "name": "answer_x", "group": "Reflection", "definition": "chosen_image[\"answer_x\"]"}, "word_x": {"templateType": "anything", "description": "

Allows the student to know whether their x value moves in the positive or negative direction.

", "name": "word_x", "group": "Reflection", "definition": "if(answer_x > 0, \"positive\",\n //else\n if(answer_x < 0, \"negative\",\n //else\n 0\n )\n)"}, "translation_images": {"templateType": "anything", "description": "

List of reflection questions (images)

", "name": "translation_images", "group": "Reflection", "definition": "['graph_translation_triangle_pos2neg10.svg','graph_translation_triangle_pos8pos0.svg','graph_translation_triangle_pos0neg10.svg','graph_translation_triangle_neg22neg10.svg','graph_translation_triangle_neg20pos2.svg','graph_translation_triangle_neg6neg6.svg','graph_translation_rightangle_pos20neg4.svg','graph_translation_rightangle_pos6pos8.svg','graph_translation_rightangle_neg8pos2.svg','graph_translation_rightangle_neg6neg4.svg']"}, "correct_image": {"templateType": "anything", "description": "

Takes the correct image (the advice) from chosen_image

", "name": "correct_image", "group": "Reflection", "definition": "chosen_image[\"correct_image\"]"}, "images": {"templateType": "json", "description": "

Uses JSON data to assign answers with images and the vector quantity the student enters.

", "name": "images", "group": "Reflection", "definition": "json_decode(safe(\"[\\n {\\n \\\"image\\\": \\\"graph_translation_triangle_pos2neg10.svg\\\",\\n \\\"answer_x\\\": -10,\\n \\\"answer_y\\\": 2,\\n \\\"correct_image\\\": \\\"graph_translation_triangle_pos2neg10_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_triangle_pos8pos0.svg\\\",\\n \\\"answer_x\\\": 8,\\n \\\"answer_y\\\": 0,\\n \\\"correct_image\\\": \\\"graph_translation_triangle_pos8pos0_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_triangle_pos0neg10.svg\\\",\\n \\\"answer_x\\\": 0,\\n \\\"answer_y\\\": -10,\\n \\\"correct_image\\\": \\\"graph_translation_triangle_pos0neg10_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_triangle_neg22neg10.svg\\\",\\n \\\"answer_x\\\": -22,\\n \\\"answer_y\\\": -10,\\n \\\"correct_image\\\": \\\"graph_translation_triangle_neg22neg10_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_triangle_neg20pos2.svg\\\",\\n \\\"answer_x\\\": -20,\\n \\\"answer_y\\\": 2,\\n \\\"correct_image\\\": \\\"graph_translation_triangle_neg20pos2_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_triangle_neg10neg6.svg\\\",\\n \\\"answer_x\\\": -10,\\n \\\"answer_y\\\": -6,\\n \\\"correct_image\\\": \\\"graph_translation_triangle_neg10neg6_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_rightangle_pos20neg4.svg\\\",\\n \\\"answer_x\\\": 20,\\n \\\"answer_y\\\": -4,\\n \\\"correct_image\\\": \\\"graph_translation_rightangle_pos20neg4_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_rightangle_pos6pos8.svg\\\",\\n \\\"answer_x\\\": 8,\\n \\\"answer_y\\\": 6,\\n \\\"correct_image\\\": \\\"graph_translation_rightangle_pos6pos8_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_rightangle_neg8pos2.svg\\\",\\n \\\"answer_x\\\": -8,\\n \\\"answer_y\\\": 2,\\n \\\"correct_image\\\": \\\"graph_translation_rightangle_neg8pos2_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_rightangle_neg4neg6.svg\\\",\\n \\\"answer_x\\\": -4,\\n \\\"answer_y\\\": -6,\\n \\\"correct_image\\\": \\\"graph_translation_rightangle_neg4neg6_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_rectangle_pos14pos8.svg\\\",\\n \\\"answer_x\\\": -14,\\n \\\"answer_y\\\": -8,\\n \\\"correct_image\\\": \\\"graph_translation_rectangle_pos14pos8_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_rectangle_pos14pos6.svg\\\",\\n \\\"answer_x\\\": 14,\\n \\\"answer_y\\\": 6,\\n \\\"correct_image\\\": \\\"graph_translation_rectangle_pos14pos6_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_rectangle_pos12neg6.svg\\\",\\n \\\"answer_x\\\": 12,\\n \\\"answer_y\\\": -6,\\n \\\"correct_image\\\": \\\"graph_translation_rectangle_pos12neg6_correct_image.svg\\\"\\n },\\n {\\n \\\"image\\\": \\\"graph_translation_rectangle_pos0neg6.svg\\\",\\n \\\"answer_x\\\": 0,\\n \\\"answer_y\\\": -6,\\n \\\"correct_image\\\": \\\"graph_translation_rectangle_pos0neg6_correct_image.svg\\\"\\n }\\n]\"))"}}, "parts": [{"variableReplacementStrategy": "originalfirst", "prompt": "

{image('resources/question-resources/'+chosen_image[\"image\"])}

\n

$\\begin{pmatrix}x \\\\ y\\end{pmatrix} =$ [[0]]

", "gaps": [{"variableReplacementStrategy": "originalfirst", "numRows": "2", "correctAnswer": "vector({answer_x},{answer_y})", "markPerCell": false, "type": "matrix", "tolerance": 0, "correctAnswerFractions": false, "numColumns": 1, "allowResize": false, "allowFractions": false, "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "marks": 1, "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "maxValue": "{answer_y}", "allowFractions": false, "mustBeReducedPC": 0, "minValue": "{answer_y}", "mustBeReduced": false, "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "marks": 1, "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}], "tags": ["taxonomy", "Translation", "translation", "translations", "Translations"], "variablesTest": {"maxRuns": 100, "condition": ""}}]}], "name": "Plane transformations", "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "percentPass": 0, "duration": 0, "type": "exam", "navigation": {"browse": true, "onleave": {"action": "none", "message": ""}, "showfrontpage": true, "showresultspage": "oncompletion", "preventleave": true, "reverse": true, "allowregen": true}, "showQuestionGroupNames": false, "feedback": {"showtotalmark": true, "advicethreshold": 0, "showactualmark": true, "showanswerstate": true, "feedbackmessages": [], "intro": "", "allowrevealanswer": true, "enterreviewmodeimmediately": true, "showexpectedanswerswhen": "inreview", "showpartfeedbackmessageswhen": "always", "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showadvicewhen": "never"}, "showstudentname": true, "metadata": {"description": "

Identify the plane transformation performed to create a given diagram.

", "licence": "Creative Commons Attribution 4.0 International"}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "extensions": [], "custom_part_types": [], "resources": [["question-resources/graph_enlargement_rectangle_pos2_00.svg", "/srv/numbas/media/question-resources/graph_enlargement_rectangle_pos2_00.svg"], ["question-resources/graph_enlargement_rightangle_pos2_00.svg", "/srv/numbas/media/question-resources/graph_enlargement_rightangle_pos2_00.svg"], ["question-resources/graph_enlargement_triangle_pos2_00.svg", "/srv/numbas/media/question-resources/graph_enlargement_triangle_pos2_00.svg"], ["question-resources/graph_enlargement_rectangle_pos2_00_correct_image.svg", "/srv/numbas/media/question-resources/graph_enlargement_rectangle_pos2_00_correct_image.svg"], ["question-resources/graph_enlargement_rightangle_pos2_00_correct_image.svg", "/srv/numbas/media/question-resources/graph_enlargement_rightangle_pos2_00_correct_image.svg"], ["question-resources/graph_enlargement_triangle_pos2_00_correct_image.svg", "/srv/numbas/media/question-resources/graph_enlargement_triangle_pos2_00_correct_image.svg"], ["question-resources/graph_enlargement_triangle_neg2_00_EoiLScE.svg", "/srv/numbas/media/question-resources/graph_enlargement_triangle_neg2_00_EoiLScE.svg"], ["question-resources/graph_enlargement_triangle_neg2_00_correct_image_2mu3W4r.svg", "/srv/numbas/media/question-resources/graph_enlargement_triangle_neg2_00_correct_image_2mu3W4r.svg"], ["question-resources/graph_reflection_circ_x_zsnE02O.svg", "/srv/numbas/media/question-resources/graph_reflection_circ_x_zsnE02O.svg"], ["question-resources/graph_reflection_circ_x_correct_oKe609k.svg", "/srv/numbas/media/question-resources/graph_reflection_circ_x_correct_oKe609k.svg"], ["question-resources/graph_reflection_circ_y_gx01gno.svg", "/srv/numbas/media/question-resources/graph_reflection_circ_y_gx01gno.svg"], ["question-resources/graph_reflection_circ_y_correct_O200k08.svg", "/srv/numbas/media/question-resources/graph_reflection_circ_y_correct_O200k08.svg"], ["question-resources/graph_reflection_circle_yx_6UIuin2.svg", "/srv/numbas/media/question-resources/graph_reflection_circle_yx_6UIuin2.svg"], ["question-resources/graph_reflection_circle_yx_correct_qTO6FYY.svg", "/srv/numbas/media/question-resources/graph_reflection_circle_yx_correct_qTO6FYY.svg"], ["question-resources/graph_reflection_rect_x_TIdTdJL.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_x_TIdTdJL.svg"], ["question-resources/graph_reflection_rect_x_correct_Rs0CpMG.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_x_correct_Rs0CpMG.svg"], ["question-resources/graph_reflection_rect_y_MmV3ZAK.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_y_MmV3ZAK.svg"], ["question-resources/graph_reflection_rect_y_correct_Robg15m.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_y_correct_Robg15m.svg"], ["question-resources/graph_reflection_rect_yx_76qXVib.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_yx_76qXVib.svg"], ["question-resources/graph_reflection_rect_yx_correct_ojRIhWk.svg", "/srv/numbas/media/question-resources/graph_reflection_rect_yx_correct_ojRIhWk.svg"], ["question-resources/graph_reflection_triangle_x_wjCxAeu.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_x_wjCxAeu.svg"], ["question-resources/graph_reflection_triangle_x_correct_bf48jod.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_x_correct_bf48jod.svg"], ["question-resources/graph_reflection_triangle_y_PN3pJ31.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_y_PN3pJ31.svg"], ["question-resources/graph_reflection_triangle_y_correct_vRjIlRy.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_y_correct_vRjIlRy.svg"], ["question-resources/graph_reflection_triangle_y-x_9JedlAc.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_y-x_9JedlAc.svg"], ["question-resources/graph_reflection_triangle_y-x_correct_hte3xZa.svg", "/srv/numbas/media/question-resources/graph_reflection_triangle_y-x_correct_hte3xZa.svg"], ["question-resources/graph_translation_rectangle_pos0neg6.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos0neg6.svg"], ["question-resources/graph_translation_rectangle_pos12neg6.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos12neg6.svg"], ["question-resources/graph_translation_rectangle_pos14pos6.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos14pos6.svg"], ["question-resources/graph_translation_rectangle_pos14pos8.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos14pos8.svg"], ["question-resources/graph_translation_rightangle_neg4neg6.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_neg4neg6.svg"], ["question-resources/graph_translation_rightangle_neg8pos2.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_neg8pos2.svg"], ["question-resources/graph_translation_rightangle_pos6pos8.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_pos6pos8.svg"], ["question-resources/graph_translation_rightangle_pos20neg4.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_pos20neg4.svg"], ["question-resources/graph_translation_triangle_neg10neg6.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg10neg6.svg"], ["question-resources/graph_translation_triangle_neg20pos2.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg20pos2.svg"], ["question-resources/graph_translation_triangle_neg22neg10.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg22neg10.svg"], ["question-resources/graph_translation_triangle_pos0neg10.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos0neg10.svg"], ["question-resources/graph_translation_triangle_pos2neg10.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos2neg10.svg"], ["question-resources/graph_translation_triangle_pos8pos0.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos8pos0.svg"], ["question-resources/graph_translation_rectangle_pos0neg6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos0neg6_correct_image.svg"], ["question-resources/graph_translation_rectangle_pos12neg6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos12neg6_correct_image.svg"], ["question-resources/graph_translation_rectangle_pos14pos6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos14pos6_correct_image.svg"], ["question-resources/graph_translation_rectangle_pos14pos8_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rectangle_pos14pos8_correct_image.svg"], ["question-resources/graph_translation_rightangle_neg4neg6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_neg4neg6_correct_image.svg"], ["question-resources/graph_translation_rightangle_neg8pos2_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_neg8pos2_correct_image.svg"], ["question-resources/graph_translation_rightangle_pos6pos8_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_pos6pos8_correct_image.svg"], ["question-resources/graph_translation_rightangle_pos20neg4_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_rightangle_pos20neg4_correct_image.svg"], ["question-resources/graph_translation_triangle_neg10neg6_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg10neg6_correct_image.svg"], ["question-resources/graph_translation_triangle_neg20pos2_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg20pos2_correct_image.svg"], ["question-resources/graph_translation_triangle_neg22neg10_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_neg22neg10_correct_image.svg"], ["question-resources/graph_translation_triangle_pos0neg10_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos0neg10_correct_image.svg"], ["question-resources/graph_translation_triangle_pos2neg10_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos2neg10_correct_image.svg"], ["question-resources/graph_translation_triangle_pos8pos0_correct_image.svg", "/srv/numbas/media/question-resources/graph_translation_triangle_pos8pos0_correct_image.svg"]]}