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

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

", "name": "CA2 Block 2 Q3 2019", "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"b": {"name": "b", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1..8 except a)"}, "a": {"name": "a", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(2..6)"}, "c": {"name": "c", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(2..20)"}}, "preamble": {"js": "", "css": ""}, "extensions": [], "functions": {}, "rulesets": {}, "ungrouped_variables": ["c", "b", "a"], "parts": [{"scripts": {}, "answer": "(1/{c})*e^({c}x+2)+C", "checkingAccuracy": 0.001, "expectedVariableNames": [], "vsetRange": [0, 1], "checkingType": "absdiff", "marks": "2", "showCorrectAnswer": true, "checkVariableNames": false, "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

", "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "variableReplacements": [], "unitTests": [], "showPreview": true}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

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