// Numbas version: exam_results_page_options {"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}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "rulesets": {}, "name": "Transformation - Translation", "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": ""}, "contributors": [{"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}]}]}], "contributors": [{"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}]}