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

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

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

\n

Task B: Use dsolve to find the solution for the following equations. [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": "

$\\frac{dy}{dt} = 2y + 3$ [1 mark]

", "minMarks": 0, "maxMarks": "1", "shuffleChoices": false, "displayType": "checkbox", "displayColumns": "1", "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["A)    syms t
       s=dsolve('Dy=2*y+3',t)", "B)    syms t
       s=dsolve('Dy=2*y+3')", "C)    s=dsolve('Dy=2*y+3')"], "matrix": ["0.34", "0.33", "0.33"], "distractors": ["A) Correct, all answers are correct. Matlab takes t as default independent variable in this case. See details in lecture notes.", "B) Correct, all answers are correct. Matlab takes t as default independent variable in this case. See details in lecture notes.", "C) Correct, all answers are correct. Matlab takes t as default independent variable in this case. See details in lecture notes."]}, {"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": "

$\\frac{dy}{dt} = y - \\frac{2t}{y}, y(0) = 1$ [1 mark]

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

A)    s=dsolve('Dy=y-2*t/y','y(0)=1',t)

", "B)    s=dsolve('Dy=y-2*t/y','y(0)=1')"], "matrix": ["0.5", "0.5"], "distractors": ["A) Correct, both answers are correct. Matlab takes t as default independent variable in this case. ", "B) Correct, both answers are correct. Matlab takes t as default independent variable in this case. "]}, {"type": "m_n_2", "useCustomName": true, "customName": "Question 3", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\frac{d^2y}{dx^2} = cos(x) - y, y(0) = 0, y^,(0) = 0$ [1 mark]

", "minMarks": 0, "maxMarks": "1", "shuffleChoices": false, "displayType": "checkbox", "displayColumns": "1", "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["A)    s=dsolve('D2y=cos(x)-y','y(0)=0','Dy(0)=0')", "B)    syms x
       s=dsolve('D2y=cos(x)-y',y(0)=0,Dy(0)=0,x)", "C)    syms x
       s=dsolve('D2y=cos(x)-y','y(0)=0','Dy(0)=0',x)"], "matrix": ["-1", "-1", "1"], "distractors": ["A) Incorrect, the correct answer is C. In this case, independent variable is x. So, you must specify it using syms x. Please also do not forget the quotation marks for the initial conditions. ", "B) Incorrect, the correct answer is C. In this case, independent variable is x. So, you must specify it using syms x. Please also do not forget the quotation marks for the initial conditions. ", "C) Correct. In this case, independent variable is x. So, you must specify it using syms x. Please also do not forget the quotation marks for the initial conditions. "]}], "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/"}]}