// Numbas version: exam_results_page_options {"name": "Task A", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Task A", "tags": [], "metadata": {"description": "

For ENG1002 - Matlab Lab 4: Differentiation, Integration, Solving Differentiation equations.

", "licence": "All rights reserved"}, "statement": "

\n

Task A: Use diff to do the following differentiation. Please choose the correct matlab command(s) for each question. [3 marks]

\n

", "advice": "", "rulesets": {}, "extensions": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_2", "useCustomName": true, "customName": "Question 1", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$f = sin(2x) + x$, work out $\\frac{df}{dx}$ [1 mark]

", "minMarks": "0", "maxMarks": "1", "shuffleChoices": false, "displayType": "checkbox", "displayColumns": "1", "minAnswers": "1", "maxAnswers": "3", "warningType": "none", "showCellAnswerState": true, "choices": ["

A)    f=sin(2*x)+x; 
       diff(f)

", "

B)    syms x
       f=sin(2*x)+x; 
       diff(f)

\n

", "

C)    syms x
       diff(sin(2*x)+x)

"], "matrix": ["-1", "0.5", "0.5"], "distractors": ["A) Incorrect, the correct answers are B and C. You must use syms x to define the independent variable. ", "B) Correct, C is the other correct answer. You must use syms x to define the independent variable. ", "C) Correct, B is the other correct answer. You must use syms x to define the independent variable. "]}, {"type": "m_n_2", "useCustomName": true, "customName": "Question 2", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

2) $g = e^{3u} + ucos(u)$, work out $\\frac{dg}{du}$ [1 mark]

", "minMarks": 0, "maxMarks": "1", "shuffleChoices": false, "displayType": "checkbox", "displayColumns": "1", "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["A)    syms x
       g=e(3*x)+x*cos(x);
       diff(g)", "

B)    syms x
       g=exp(3*x)+x*cos(x);
       diff(g)

"], "matrix": ["-1", "1"], "distractors": ["A) Incorrect, the correct answer is B. Use exp for exponential function. ", "B) Correct. Use exp for exponential function. "]}, {"type": "m_n_2", "useCustomName": true, "customName": "Question 3", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

3) $h = ln(t) + \\frac{5}{t}$, work out $\\frac{dh}{dt}$ [1 mark]

", "minMarks": 0, "maxMarks": "1", "shuffleChoices": false, "displayType": "checkbox", "displayColumns": "1", "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["A)    syms x
       h=log(t)+5/t
       diff(h)", "B)    syms t
       h=ln(t)+5/t
       diff(h)", "

C)    syms t
       h=log(t)+5/t
       diff(h)

"], "matrix": ["-1", "-1", "1"], "distractors": ["A) Incorrect, the correct answer is C. You must use syms t because t is the independent variable in this case. Use log for ln in matlab. ", "B) Incorrect, the correct answer is C. You must use syms t because t is the independent variable in this case. Use log for ln in matlab. ", "C) Correct. You must use syms t because t is the independent variable in this case. Use log for ln in matlab. "]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Alex Boote", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5098/"}]}]}], "contributors": [{"name": "Alex Boote", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5098/"}]}