// Numbas version: exam_results_page_options {"name": "Indefinite Integrals Q2 2019 (custom feedback)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "variable_groups": [], "name": "Indefinite Integrals Q2 2019 (custom feedback)", "ungrouped_variables": ["a", "c", "b", "d", "f"], "statement": "

Solve the following indefinite integrals, using $C$ to represent an unknown constant.

", "preamble": {"js": "", "css": ""}, "tags": [], "advice": "

Indefinite Integrals

", "variables": {"c": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "c", "definition": "random(1..9 except a except b)"}, "f": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "f", "definition": "random(1..8 except d)"}, "b": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "b", "definition": "random(2..9 except a)"}, "a": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "a", "definition": "random(2..9)"}, "d": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "d", "definition": "random(1..8)"}}, "rulesets": {}, "parts": [{"extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "malrules:\n [\n [\"2u^3/3+({f}+2*{d})/2*u^2+{d*f}u\", \"Don't forget to include the constant of integration.\"], \n [\"(u^2/2+{d}*u)*(u^2+{f}*u)+C\", \"It looks like you integrated each term without multiplying out the expression. Try multiplying out first.\"],\n [\"(u^2/2+{d}*u)*(u^2+{f}*u)\", \"It looks like you integrated each term without multiplying out the expression. Try multiplying out first.\"]\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 )))$\\int(u+\\var{d})(2u+\\var{f})\\mathrm{du}$

", "failureRate": 1, "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "vsetRangePoints": 5, "unitTests": [], "marks": 1, "expectedVariableNames": []}], "metadata": {"description": "

Simple Indefinite Integrals

\n

", "licence": "Creative Commons Attribution 4.0 International"}, "extensions": [], "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/"}]}