// Numbas version: exam_results_page_options {"name": "Indefinite Integrals 1_2019 (custom feedback)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

Indefinite Integrals

", "functions": {}, "statement": "

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

", "preamble": {"js": "", "css": ""}, "name": "Indefinite Integrals 1_2019 (custom feedback)", "extensions": [], "parts": [{"showCorrectAnswer": true, "showPreview": true, "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "type": "jme", "customMarkingAlgorithm": "", "prompt": "

$\\int(x^4-\\var{a}x^3+\\var{b}x-\\var{c})\\mathrm{dx}$

", "unitTests": [], "checkVariableNames": false, "marks": 1, "scripts": {}, "answer": "x^5/5-{a}x^4/4+{b}x^2/2-{c}x+C", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "expectedVariableNames": [], "showFeedbackIcon": true, "variableReplacements": [], "checkingAccuracy": 0.001, "vsetRangePoints": 5, "checkingType": "absdiff"}, {"showCorrectAnswer": true, "showPreview": true, "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "type": "jme", "customMarkingAlgorithm": "malrules:\n [\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 ]\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}$

", "unitTests": [], "checkVariableNames": false, "marks": 1, "scripts": {}, "answer": "2u^3/3+u^2({f}+2{d})/2+{d}{f}u+C", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "expectedVariableNames": [], "showFeedbackIcon": true, "variableReplacements": [], "checkingAccuracy": 0.001, "vsetRangePoints": 5, "checkingType": "absdiff"}, {"showCorrectAnswer": true, "showPreview": true, "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "type": "jme", "customMarkingAlgorithm": "", "prompt": "

$\\int\\frac{\\sin(2x)}{\\sin(x)}\\mathrm{dx}$.

\n

Take care to include the brackets in the trigonometric expressions, i.e. write sin(x) rather than sinx.

", "unitTests": [], "checkVariableNames": false, "marks": 1, "scripts": {}, "answer": "2sin(x) + C", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "expectedVariableNames": [], "showFeedbackIcon": true, "variableReplacements": [], "checkingAccuracy": 0.001, "vsetRangePoints": 5, "checkingType": "absdiff"}, {"showCorrectAnswer": true, "showPreview": true, "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "type": "jme", "customMarkingAlgorithm": "", "prompt": "

$\\int (\\frac{2}{x^4}+\\frac{3}{x}+1)\\mathrm{dx}$

", "unitTests": [], "checkVariableNames": false, "marks": 1, "scripts": {}, "answer": "-2/3*1/x^3+3ln(x)+x+C", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "expectedVariableNames": [], "showFeedbackIcon": true, "variableReplacements": [], "checkingAccuracy": 0.001, "vsetRangePoints": 5, "checkingType": "absdiff"}, {"showCorrectAnswer": true, "showPreview": true, "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "type": "jme", "customMarkingAlgorithm": "", "prompt": "

$\\int(q^3+\\sqrt{q})\\mathrm{dq}$

", "unitTests": [], "checkVariableNames": false, "marks": 1, "scripts": {}, "answer": "q^4/4+2/3q^(3/2)+C", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "expectedVariableNames": [], "showFeedbackIcon": true, "variableReplacements": [], "checkingAccuracy": 0.001, "vsetRangePoints": 5, "checkingType": "absdiff"}, {"showCorrectAnswer": true, "showPreview": true, "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "type": "jme", "customMarkingAlgorithm": "", "prompt": "

$\\int(x^2-6+\\frac{x}{2})\\mathrm{dx}$

", "unitTests": [], "checkVariableNames": false, "marks": 1, "scripts": {}, "answer": "x^3/3-6x+x^2/4+C", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "expectedVariableNames": [], "showFeedbackIcon": true, "variableReplacements": [], "checkingAccuracy": 0.001, "vsetRangePoints": 5, "checkingType": "absdiff"}, {"showCorrectAnswer": true, "showPreview": true, "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "type": "jme", "customMarkingAlgorithm": "", "prompt": "

$\\int{(\\frac{3}{4}-2p+\\frac{4}{p^2}})\\mathrm{dp}$

", "unitTests": [], "checkVariableNames": false, "marks": 1, "scripts": {}, "answer": "3/4p-p^2-4/p+c", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "expectedVariableNames": [], "showFeedbackIcon": true, "variableReplacements": [], "checkingAccuracy": 0.001, "vsetRangePoints": 5, "checkingType": "absdiff"}, {"showCorrectAnswer": true, "showPreview": true, "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "type": "jme", "customMarkingAlgorithm": "", "prompt": "

$\\int{(\\frac{1}{4}\\sqrt{x}-3\\sqrt{x^5})}\\mathrm{dx}$

", "unitTests": [], "checkVariableNames": false, "marks": 1, "scripts": {}, "answer": "1/6x^(3/2)-6/7x^(7/2)+c", "extendBaseMarkingAlgorithm": true, "failureRate": 1, "expectedVariableNames": [], "showFeedbackIcon": true, "variableReplacements": [], "checkingAccuracy": 0.001, "vsetRangePoints": 5, "checkingType": "absdiff"}], "ungrouped_variables": ["a", "c", "b", "d", "f"], "variable_groups": [], "variables": {"f": {"name": "f", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1..8 except d)"}, "a": {"name": "a", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(2..9)"}, "c": {"name": "c", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1..9 except a except b)"}, "b": {"name": "b", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(2..9 except a)"}, "d": {"name": "d", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1..8)"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Simple Indefinite Integrals

\n

"}, "rulesets": {}, "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/"}]}