// Numbas version: finer_feedback_settings {"name": "Give an example of (vectors 1)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Give an example of (vectors 1)", "tags": [], "metadata": {"description": "The matrix entry part in this question marks any symmetric matrix as correct, using a custom marking algorithm. A matrix is symmetric if it is equal to its transpose.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Give an example of...

", "advice": "", "rulesets": {}, "extensions": [], "variables": {"impossible_a": {"name": "impossible_a", "group": "Ungrouped variables", "definition": "false", "description": "", "templateType": "anything"}, "impossible_b": {"name": "impossible_b", "group": "Ungrouped variables", "definition": "true", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["impossible_a", "impossible_b"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "student_impossible (Did the student tick \"This is impossible\"?): studentanswer[1][0][0]\n\nmark:\n if(student_impossible,\n assert(studentanswer[0]=\"\",\n fail(\"If you tick 'This is impossible', leave the number box blank.\")\n );\n correctif(impossible_a=true)\n ,\n let(\n number_res,mark_part(gaps[0][\"path\"],studentAnswer[0]),\n student_number, number_res[\"values\"][\"interpreted_answer\"],\n assert(number_res[\"valid\"], \n fail(\"You must either write a valid number or tick 'This is impossible'.\")\n );\n correctif(if(impossible_a=false, studentMatrix[0][0]=sqrt(studentMatrix[0][0]^2+studentMatrix[0][1]^2), studentMatrix[0][0]<>sqrt(studentMatrix[0][0]^2+studentMatrix[0][1]^2)))\n )\n )\n\ninterpreted_answer: studentanswer", "extendBaseMarkingAlgorithm": false, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

a vector $\\vec w =(a,b)$ where $|a|=|\\vec w|$

\n

Or if it can't be done, tick \"this is impossible\" and leave the box blank.

\n

[[0]]

\n

[[1]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "is_correct (Is the student's answer correct?):\n if(studentMatrix[0][0]=sqrt(studentMatrix[0][0]^2+studentMatrix[0][1]^2),\n correct(),\n incorrect(\"This does not satisfy the property\")\n )\n\nmark:\n apply(any_empty);\n apply(any_invalid);\n apply(is_correct)", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "correctAnswer": "matrix([2, 1])", "correctAnswerFractions": false, "numRows": "1", "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["This is impossible"], "matrix": [0], "distractors": [""]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "student_impossible (Did the student tick \"This is impossible\"?): studentanswer[1][0][0]\n\nmark:\n if(student_impossible,\n assert(studentanswer[0]=\"\",\n fail(\"If you tick 'This is impossible', leave the number box blank.\")\n );\n correctif(impossible_b=true)\n ,\n let(\n number_res,mark_part(gaps[0][\"path\"],studentAnswer[0]),\n student_number, number_res[\"values\"][\"interpreted_answer\"],\n assert(number_res[\"valid\"], \n fail(\"You must either write a valid number or tick 'This is impossible'.\")\n );\n correctif(if(impossible_b=false, studentMatrix[0][0]>sqrt(studentMatrix[0][0]^2+studentMatrix[0][1]^2), studentMatrix[0][0]<=sqrt(studentMatrix[0][0]^2+studentMatrix[0][1]^2)))\n )\n )\n\ninterpreted_answer: studentanswer", "extendBaseMarkingAlgorithm": false, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

a vector $\\vec v =(a,b)$ where $|a|>|\\vec v|$

\n

Or if it can't be done, tick \"this is impossible\" and leave the box blank.

\n

[[0]]

\n

[[1]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "is_correct (Is the student's answer correct?):\n if(studentMatrix[0][0]>sqrt(studentMatrix[0][0]^2+studentMatrix[0][1]^2),\n correct(),\n incorrect(\"This does not satisfy the property\")\n )\n\nmark:\n apply(any_empty);\n apply(any_invalid);\n apply(is_correct)", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "correctAnswer": "matrix([2, 1])", "correctAnswerFractions": false, "numRows": "1", "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["This is impossible"], "matrix": [0], "distractors": [""]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Antony Edwards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/535/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Antony Edwards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/535/"}]}