// Numbas version: exam_results_page_options {"name": "Definite Integrals (a) (custom feedback)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"js": "", "css": ""}, "variable_groups": [], "name": "Definite Integrals (a) (custom feedback)", "advice": "

Definite Integrals

", "rulesets": {}, "functions": {}, "tags": [], "parts": [{"prompt": "

$\\int_0^1\\cos(\\frac{\\pi t}{2})\\mathrm{dt}$.

\n

To write $\\pi$ in your answer simply write pi.

", "vsetRange": [0, 1], "showFeedbackIcon": true, "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "unitTests": [], "customMarkingAlgorithm": "malrules:\n [\n [\"-2/pi\", \"Check the following two things: (1) Double check that you used the correct rule for integrating $\\\\cos x$. (2) Make sure you filled in the top limit of integration first and subtracted what you got when you filled in the bottom limit - not the other way around.\"],\n [\"-pi/2\",\"It looks like you differentiated $\\\\cos \\\\left( \\\\frac{\\\\pi t}{2} \\\\right)$ instead of integrating.\"],\n [\"pi/2\",\"It looks like you multiplied by the number in front of $t$ rather than dividing by it.\"]\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 )))Find the following definite integral

", "metadata": {"description": "

Definite Integrals

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "cormac breen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/306/"}, {"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}]}]}], "contributors": [{"name": "cormac breen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/306/"}, {"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}]}