// Numbas version: exam_results_page_options {"name": "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": [{"functions": {}, "ungrouped_variables": ["dy", "dx", "grad"], "name": "Calculating gradient", "tags": [], "advice": "

Gradient is calculated as:

\n

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

", "rulesets": {}, "parts": [{"prompt": "

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

", "allowFractions": false, "variableReplacements": [], "maxValue": "grad+0.05", "minValue": "grad-0.05", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry"}], "extensions": [], "statement": "

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

\n

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

\n

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

Calculating gradients

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}]}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}