// Numbas version: exam_results_page_options {"name": "CA2 Block 2 Q3 2019", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"preventleave": false, "showfrontpage": false, "allowregen": true}, "question_groups": [{"questions": [{"extensions": [], "functions": {}, "name": "CA2 Block 2 Q3 2019", "advice": "

integration by Susbtitution

", "preamble": {"css": "", "js": ""}, "statement": "

Perform the following integration, using the letter $C$ to represent any unknown constants.

", "parts": [{"checkVariableNames": false, "type": "jme", "variableReplacements": [], "marks": "2", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "failureRate": 1, "showFeedbackIcon": true, "showCorrectAnswer": true, "vsetRangePoints": 5, "answer": "(1/{c})*e^({c}x+2)+C", "expectedVariableNames": [], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "scripts": {}, "checkingType": "absdiff", "unitTests": [], "showPreview": true, "customMarkingAlgorithm": "malrules:\n [\n [\"1/{c}*e^({c}*x+2)\", \"Almost there! Did you forget to include the integration constant?\",0.9],\n [\"{c}*e^({c}x+2)+C\", \"It looks like you differentiated rather than integrating.\",0],\n [\"{c}*e^({c}x+2)\", \"It looks like you differentiated rather than integrating.\",0],\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$?\",0],\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$?\",0],\n [\"({c}*x+2)*e^({c}*x+1)+C\",\"You cannot use the power rule if you have a variable in the power.\",0],\n [\"({c}*x+2)*e^({c}*x+1)\",\"You cannot use the power rule if you have a variable in the power.\",0]\n ]\n\n\nparsed_malrules: \n map(\n [\"expr\":parse(x[0]),\"feedback\":x[1],\"credit\":x[2]],\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 )))$\\int e^{\\var{c}x+2} \\ dx$.

\n

"}], "type": "question", "variables": {"b": {"templateType": "anything", "definition": "random(1..8 except a)", "name": "b", "description": "", "group": "Ungrouped variables"}, "a": {"templateType": "anything", "definition": "random(2..6)", "name": "a", "description": "", "group": "Ungrouped variables"}, "c": {"templateType": "anything", "definition": "random(2..20)", "name": "c", "description": "", "group": "Ungrouped variables"}}, "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/", "name": "Clodagh Carroll"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1030/", "name": "Violeta CIT"}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Integration by susbtitution. Use the letter C for the constant.

"}, "rulesets": {}, "ungrouped_variables": ["c", "b", "a"], "variable_groups": []}], "pickingStrategy": "all-ordered"}], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/", "name": "Clodagh Carroll"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1030/", "name": "Violeta CIT"}]}