// Numbas version: exam_results_page_options {"name": "Evaluating a function 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Evaluating a function 1", "tags": [], "metadata": {"description": "Substituting a (negative) value into a function involving a quqdratic and 1/x", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Consider the function $f(x) = ${a}$x^2 - \\frac{8}{x}, x \\ne 0$

", "advice": "

This question is testing that you can substitute the value given into the function. If your result does not match the answer given, {f_eval}, then check the following

\n\n

", "rulesets": {}, "extensions": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(0.5 .. 2.5#0.5)", "description": "

coefficient of x^2 in function

", "templateType": "randrange"}, "eval": {"name": "eval", "group": "Ungrouped variables", "definition": "random(-4 .. -2#2)", "description": "

point at which function should be evaluated

", "templateType": "randrange"}, "f_eval": {"name": "f_eval", "group": "Ungrouped variables", "definition": "{a}*eval^2 - 8/eval", "description": "

result of evaluating function at given point

", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "eval", "f_eval"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Evaluate $f(${eval}$)$

", "minValue": "{f_eval}", "maxValue": "{f_eval}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Johnathan Gregg", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4974/"}]}]}], "contributors": [{"name": "Johnathan Gregg", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4974/"}]}