// Numbas version: exam_results_page_options {"name": "T6Q1 (custom feedback)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial 4.0 International", "description": "

Partial differentiation question with customised feedback to catch some common errors.

"}, "parts": [{"scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "prompt": "

$\\frac{\\partial z}{\\partial x}$= [[0]]

", "sortAnswers": false, "showCorrectAnswer": true, "gaps": [{"vsetRangePoints": 5, "showPreview": true, "failureRate": 1, "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "malrules:\n [\n [\"3y+3x+2x-6y^2\", \"The product rule is not needed to differentiate $3xy$. Remember, when partially differentiating with respect to $x$, treat $y$ as a number. This also goes for the last term: $2y^3$ is just treated as a number.\"],\n [\"(-3y-2x)/(3x-6y^2)\", \"It looks like you have used implicit differentiation rather than partial differentiation. Implicit differentiation is only used if you wish to find $\\\\frac{dy}{dx}$, not if you wish to find $\\\\frac{\\\\partial y}{\\\\partial x}$ or $\\\\frac{\\\\partial z}{\\\\partial x}$ etc.\"]\n ]\n\n\nparsed_malrules: \n map(\n [\"expr\":parse(x[0]),\"feedback\":x[1]],\n x,\n malrules\n )\n\nagree_malrules (Do the student's answer and the expected answer agree on each of the sets of variable values?):\n map(\n len(filter(not x ,x,map(\n try(\n resultsEqual(unset(question_definitions,eval(studentexpr,vars)),unset(question_definitions,eval(malrule[\"expr\"],vars)),settings[\"checkingType\"],settings[\"checkingAccuracy\"]),\n message,\n false\n ),\n vars,\n vset\n )))$\\frac{\\partial z}{\\partial y}$=[[0]]

", "sortAnswers": false, "showCorrectAnswer": true, "gaps": [{"vsetRangePoints": 5, "showPreview": true, "failureRate": 1, "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "malrules:\n [\n [\"3y+3x+2x-6y^2\", \"The product rule is not needed to differentiate $3xy$. Remember, when partially differentiating with respect to $y$, treat $x$ as a number. This also goes for the second term: $x^2$ is just treated as a number.\"],\n [\"(-3y-2x)/(3x-6y^2)\", \"It looks like you have used implicit differentiation rather than partial differentiation. Implicit differentiation is only used if you wish to find $\\\\frac{dy}{dx}$, not if you wish to find $\\\\frac{\\\\partial y}{\\\\partial x}$ or $\\\\frac{\\\\partial z}{\\\\partial y}$ etc.\"]\n ]\n\n\nparsed_malrules: \n map(\n [\"expr\":parse(x[0]),\"feedback\":x[1]],\n x,\n malrules\n )\n\nagree_malrules (Do the student's answer and the expected answer agree on each of the sets of variable values?):\n map(\n len(filter(not x ,x,map(\n try(\n resultsEqual(unset(question_definitions,eval(studentexpr,vars)),unset(question_definitions,eval(malrule[\"expr\"],vars)),settings[\"checkingType\"],settings[\"checkingAccuracy\"]),\n message,\n false\n ),\n vars,\n vset\n )))$\\frac{\\partial^2 z}{\\partial x^2}$=[[0]]

", "sortAnswers": false, "showCorrectAnswer": true, "gaps": [{"vsetRangePoints": 5, "showPreview": true, "failureRate": 1, "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": [], "vsetRange": [0, 1], "showCorrectAnswer": true, "checkVariableNames": false, "checkingType": "absdiff", "expectedVariableNames": [], "checkingAccuracy": 0.001, "answer": "2", "extendBaseMarkingAlgorithm": true, "marks": 1, "type": "jme", "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}], "extendBaseMarkingAlgorithm": true, "marks": 0, "type": "gapfill", "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}], "functions": {}, "statement": "

Let $z=3xy+x^2-2y^3$. Find the partial derivatives:

", "rulesets": {}, "name": "T6Q1 (custom feedback)", "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "extensions": [], "ungrouped_variables": [], "advice": "", "variables": {}, "variable_groups": [], "type": "question", "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}]}]}], "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}]}