// Numbas version: finer_feedback_settings {"name": "2.1.2.2 Evaluate a function version 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "2.1.2.2 Evaluate a function version 1", "tags": [], "metadata": {"description": "
Evaluate a given, randomised, linear function at a given, randomised, value.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Given the function $\\var{fe}(\\var{ve})=\\var{expr}$ find $\\var{fe}(\\var{c[2]})$
", "advice": "$\\var{fe}(\\var{ve})=\\var{expr}$
\n$\\var{fe}(\\var{c[2]})=(\\var{c[0]})(\\var{c[2]})\\var{latex(sgn)}\\var{abs(c[1])}=\\var{ans}$
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"fe": {"name": "fe", "group": "Ungrouped variables", "definition": "expression(f)", "description": "", "templateType": "anything", "can_override": false}, "ve": {"name": "ve", "group": "Ungrouped variables", "definition": "expression(v)", "description": "", "templateType": "anything", "can_override": false}, "expr": {"name": "expr", "group": "Ungrouped variables", "definition": "simplify(expression(\n c[0]+\"*\"+v+\"+\"+c[1]\n ),[\"basic\",\"unitFactor\"])", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "[\n random(-9..9 except 0),\n random(-9..9 except 0),\n decimal(random([random(-9..9 except 0)/10,random(-90..90 except 0)/100,random(-9..9 except 0)]))\n]", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(\"f\",\"g\",\"h\")", "description": "", "templateType": "anything", "can_override": false}, "v": {"name": "v", "group": "Ungrouped variables", "definition": "random(\"t\",\"p\",\"x\",\"y\",\"z\",\"w\")", "description": "", "templateType": "anything", "can_override": false}, "working": {"name": "working", "group": "Ungrouped variables", "definition": "expression(\n \"(\"+c[0]+\")*(\"+c[2]+\")\"+sgn+abs(c[1])\n)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "c[0]*c[2]+c[1]", "description": "", "templateType": "anything", "can_override": false}, "sgn": {"name": "sgn", "group": "Ungrouped variables", "definition": "if(c[1]>0,\"+\",\"-\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["f", "fe", "v", "ve", "c", "sgn", "expr", "working", "ans"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{ans}", "maxValue": "{ans}", "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", "type": "question", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "resources": []}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}