// Numbas version: exam_results_page_options {"name": "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": [{"extensions": [], "ungrouped_variables": ["dy", "dx", "grad"], "type": "question", "variables": {"dx": {"name": "dx", "templateType": "anything", "definition": "random(-2..25 except 0)", "description": "", "group": "Ungrouped variables"}, "grad": {"name": "grad", "templateType": "anything", "definition": "dy/dx", "description": "", "group": "Ungrouped variables"}, "dy": {"name": "dy", "templateType": "anything", "definition": "random(-5..20 except 0)", "description": "", "group": "Ungrouped variables"}}, "parts": [{"maxValue": "grad+0.05", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "type": "numberentry", "correctAnswerFraction": false, "prompt": "

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

", "allowFractions": false, "marks": 1, "minValue": "grad-0.05", "scripts": {}}], "preamble": {"css": "", "js": ""}, "tags": [], "name": "Simon's copy of Calculating gradient", "showQuestionGroupNames": false, "advice": "

Gradient is calculated as:

\n

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

", "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Calculating gradients

"}, "statement": "

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

\n

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

\n

", "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "question_groups": [{"name": "", "pickQuestions": 0, "pickingStrategy": "all-ordered", "questions": []}], "rulesets": {}, "variable_groups": [], "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/"}]}