// Numbas version: finer_feedback_settings {"name": "CA2 (2018/19) Substitution 3 (custom feedback)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "statement": "
Perform the following integration, using the letter $C$ to represent any unknown constants.
", "preamble": {"js": "", "css": ""}, "extensions": [], "parts": [{"unitTests": [], "scripts": {}, "marks": "2", "showCorrectAnswer": true, "failureRate": 1, "showFeedbackIcon": true, "prompt": "$\\int e^{\\var{c}x+2} \\ dx$.
\n", "showPreview": true, "checkVariableNames": false, "vsetRangePoints": 5, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "malrules:\n [\n [\"1/{c}*e^({c}*x+2)\", \"Almost there! Did you forget to include the integration constant?\"],\n [\"{c}*e^({c}x+2)+C\", \"It looks like you differentiated rather than integrating.\"],\n [\"{c}*e^({c}x+2)\", \"It looks like you differentiated rather than integrating.\"],\n [\"e^({c}x+2)+C\", \"Double check the rule for integrating $e^{\\\\var{c}x+2}$. Did you remember to divide by the number in front of $x$?\"],\n [\"e^({c}x+2)\", \"Double check the rule for integrating $e^{\\\\var{c}x+2}$. Did you remember to divide by the number in front of $x$?\"],\n [\"({c}*x+2)*e^({c}*x+1)+C\",\"You cannot use the power rule if you have a variable in the power.\"],\n [\"({c}*x+2)*e^({c}*x+1)\",\"You cannot use the power rule if you have a variable in the power.\"]\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 )))integration by Susbtitution
", "name": "CA2 (2018/19) Substitution 3 (custom feedback)", "variables": {"c": {"name": "c", "group": "Ungrouped variables", "definition": "random(2..20)", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..8 except a)", "description": "", "templateType": "anything"}}, "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}, {"name": "Violeta CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1030/"}]}]}], "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}, {"name": "Violeta CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1030/"}]}