// Numbas version: finer_feedback_settings {"name": "CA2 Block 1 Q2 2019", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "CA2 Block 1 Q2 2019", "tags": [], "metadata": {"description": "
Simple Indefinite Integrals
\n", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Find the following integral:
", "advice": "Indefinite Integrals
", "rulesets": {}, "extensions": [], "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "random(1..8)", "description": "", "templateType": "anything"}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(1..8 except d)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(2..9 except a)", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(1..9 except a except b)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "c", "b", "d", "f"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "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!\",0.9],\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.\",0],\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. Also, don't forget to include the constant of integration!\",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 )))