// Numbas version: finer_feedback_settings {"name": "PreCal Parabola Given Equation y=ax^2 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": "

What is the vertex location?  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": {}, "showCorrectAnswer": true, "useCustomName": false, "answer": "vector({h},{yFocus[0]}/{yFocus[1]})", "showPreview": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "marks": 1, "prompt": "

What is the location of the Focus?  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": "exact", "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 Parabola Given Equation y=ax^2 Find Focus and Directrix", "statement": "

GIVEN:  $ y=\\var{a}x^2$

\n

FIND:  The focus and directrix of this parabola.

", "advice": "", "tags": [], "ungrouped_variables": ["a", "h", "k", "p", "directrix", "yFocus"], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"h": {"description": "", "name": "h", "definition": "0", "group": "Ungrouped variables", "templateType": "anything"}, "yFocus": {"description": "", "name": "yFocus", "definition": "rational_approximation(k+p[0]/p[1])", "group": "Ungrouped variables", "templateType": "anything"}, "k": {"description": "", "name": "k", "definition": "0", "group": "Ungrouped variables", "templateType": "anything"}, "a": {"description": "", "name": "a", "definition": "random(-5..5#0.1 except 0)", "group": "Ungrouped variables", "templateType": "anything"}, "directrix": {"description": "", "name": "directrix", "definition": "rational_approximation(k-p[0]/p[1])", "group": "Ungrouped variables", "templateType": "anything"}, "p": {"description": "", "name": "p", "definition": "rational_approximation(1/(4*a))", "group": "Ungrouped variables", "templateType": "anything"}}, "type": "question", "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/"}]}