// Numbas version: exam_results_page_options {"name": "Simon's copy of Simon's copy of Calculating gradient", "extensions": [], "custom_part_types": [], "resources": [["question-resources/dydx.png", "/srv/numbas/media/question-resources/dydx.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "tags": [], "extensions": [], "statement": "

A student is trying to find the gradient on the graph below.

\n

{image('resources/question-resources/dydx.png')}

\n

", "parts": [{"correctAnswerStyle": "plain", "unitTests": [], "strictPrecision": false, "showPrecisionHint": true, "showFeedbackIcon": true, "allowFractions": false, "mustBeReduced": false, "scripts": {}, "precision": "3", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "maxValue": "grad", "prompt": "

If the difference of $y = \\var{dy}$, and the difference in $x = \\var{dx}$, calculate the gradient.

", "customMarkingAlgorithm": "", "customName": "", "precisionPartialCredit": 0, "mustBeReducedPC": 0, "variableReplacements": [], "precisionMessage": "You have not given your answer to the correct precision.", "type": "numberentry", "precisionType": "dp", "marks": 1, "extendBaseMarkingAlgorithm": true, "notationStyles": ["plain", "en", "si-en"], "minValue": "grad"}], "advice": "

Gradient is calculated as:

\n

$\\frac{\\text{difference in }y}{\\text{difference in }x}$

\n

\n

Therefore in our example, gradient = $\\frac{\\text{difference in }y}{\\text{difference in }x}=\\frac{\\var{dy}}{\\var{dx}}=\\var{dy/dx}$

", "functions": {}, "variables": {"grad": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "dy/dx", "name": "grad"}, "dx": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(-2..25 except 0)", "name": "dx"}, "dy": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(-5..20 except 0)", "name": "dy"}}, "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["dy", "dx", "grad"], "variablesTest": {"maxRuns": 100, "condition": ""}, "variable_groups": [], "metadata": {"description": "

Calculating gradients

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "name": "Simon's copy of Simon's copy of Calculating gradient", "type": "question", "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}