// Numbas version: exam_results_page_options {"name": "PreCal Given equation of parabola in standard form find focus and directrix", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "rulesets": {}, "functions": {}, "preamble": {"css": "", "js": ""}, "metadata": {"description": "", "licence": "All rights reserved"}, "parts": [{"scripts": {}, "showCorrectAnswer": true, "useCustomName": false, "answer": "vector({h},{k})", "showPreview": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "marks": 1, "prompt": "

State the vertex of the equation.  Enter your answer as vector(h,k)

", "adaptiveMarkingPenalty": 0, "checkVariableNames": false, "vsetRange": [0, 1], "variableReplacements": [], "vsetRangePoints": 5, "type": "jme", "checkingAccuracy": 0.001, "unitTests": [], "checkingType": "absdiff", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "customName": "", "valuegenerators": []}, {"scripts": {}, "matchMode": "exact", "variableReplacements": [], "showCorrectAnswer": true, "useCustomName": false, "type": "patternmatch", "extendBaseMarkingAlgorithm": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "displayAnswer": "{opens[{opensAnswer}]}", "marks": 1, "prompt": "

Which direction does this parabola open?  (up, down, left, right)

", "adaptiveMarkingPenalty": 0, "answer": "{opens[{opensAnswer}]}", "customName": ""}, {"scripts": {}, "matchMode": "regex", "variableReplacements": [], "showCorrectAnswer": true, "useCustomName": false, "type": "patternmatch", "extendBaseMarkingAlgorithm": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "displayAnswer": "x={h}", "marks": 1, "prompt": "

What is the equation for the axis of symmetry for the parabola?

", "adaptiveMarkingPenalty": 0, "answer": "x={h}", "customName": ""}, {"scripts": {}, "showCorrectAnswer": true, "useCustomName": false, "answer": "vector({xFocus},{yFocus[0]}/{yFocus[1]})", "showPreview": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "marks": 1, "prompt": "

State the location of the focus of this parabola.  Enter your answer as vector(x,y)

", "adaptiveMarkingPenalty": 0, "checkVariableNames": false, "vsetRange": [0, 1], "variableReplacements": [], "vsetRangePoints": 5, "type": "jme", "checkingAccuracy": 0.001, "unitTests": [], "checkingType": "absdiff", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "customName": "", "valuegenerators": []}, {"scripts": {}, "matchMode": "regex", "variableReplacements": [], "showCorrectAnswer": true, "useCustomName": false, "type": "patternmatch", "extendBaseMarkingAlgorithm": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "displayAnswer": "y={directrix[0]}/{directrix[1]}", "marks": 1, "prompt": "

What is the equation for the directrix of this parabola?

", "adaptiveMarkingPenalty": 0, "answer": "y={directrix[0]}/{directrix[1]}", "customName": ""}], "extensions": [], "name": "PreCal Given equation of parabola in standard form find focus and directrix", "statement": "

GIVEN:  $  f(x) = \\simplify{ {a}*x^2 - 2*{a}*{h}x + {constant} }  $

", "advice": "", "tags": [], "ungrouped_variables": ["h", "k", "a", "opens", "opensAnswer", "p", "directrix", "signa", "xFocus", "yFocus", "constant"], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"opens": {"description": "", "name": "opens", "definition": "[\"down\",\"up\"]", "group": "Ungrouped variables", "templateType": "anything"}, "signa": {"description": "", "name": "signa", "definition": "sign(a)", "group": "Ungrouped variables", "templateType": "anything"}, "opensAnswer": {"description": "", "name": "opensAnswer", "definition": "(1+sign(a))/2", "group": "Ungrouped variables", "templateType": "anything"}, "h": {"description": "", "name": "h", "definition": "random(-10..10)", "group": "Ungrouped variables", "templateType": "anything"}, "k": {"description": "", "name": "k", "definition": "random(-10..10)", "group": "Ungrouped variables", "templateType": "anything"}, "yFocus": {"description": "", "name": "yFocus", "definition": "rational_approximation(k+p[0]/p[1])", "group": "Ungrouped variables", "templateType": "anything"}, "directrix": {"description": "", "name": "directrix", "definition": "rational_approximation(k-p[0]/p[1])", "group": "Ungrouped variables", "templateType": "anything"}, "xFocus": {"description": "", "name": "xFocus", "definition": "h", "group": "Ungrouped variables", "templateType": "anything"}, "a": {"description": "", "name": "a", "definition": "random(-5..5#0.25)", "group": "Ungrouped variables", "templateType": "anything"}, "constant": {"description": "", "name": "constant", "definition": "a*h^2+k", "group": "Ungrouped variables", "templateType": "anything"}, "p": {"description": "", "name": "p", "definition": "rational_approximation(1/(4*a))", "group": "Ungrouped variables", "templateType": "anything"}}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}