// Numbas version: finer_feedback_settings {"name": "PreCal Given equation of sideways parabola in vertex 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": [{"tags": [], "metadata": {"licence": "All rights reserved", "description": ""}, "ungrouped_variables": ["h", "k", "a", "opens", "opensAnswer", "p", "directrix", "signa", "xFocus", "yFocus"], "rulesets": {}, "name": "PreCal Given equation of sideways parabola in vertex form find focus and directrix", "advice": "", "parts": [{"checkingType": "absdiff", "showFeedbackIcon": true, "adaptiveMarkingPenalty": 0, "vsetRange": [0, 1], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "jme", "showPreview": true, "valuegenerators": [], "checkingAccuracy": 0.001, "failureRate": 1, "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "vsetRangePoints": 5, "useCustomName": false, "answer": "vector({h},{k})", "prompt": "
State the vertex of the equation. Enter your answer as vector(h,k)
", "marks": 1}, {"displayAnswer": "{opens[{opensAnswer}]}", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "adaptiveMarkingPenalty": 0, "customName": "", "answer": "{opens[{opensAnswer}]}", "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}, "matchMode": "exact", "extendBaseMarkingAlgorithm": true, "useCustomName": false, "type": "patternmatch", "variableReplacementStrategy": "originalfirst", "prompt": "Which direction does this parabola open? (up, down, left, right)
", "marks": 1, "unitTests": []}, {"displayAnswer": "y={k}", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "adaptiveMarkingPenalty": 0, "customName": "", "answer": "y={k}", "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}, "matchMode": "regex", "extendBaseMarkingAlgorithm": true, "useCustomName": false, "type": "patternmatch", "variableReplacementStrategy": "originalfirst", "prompt": "What is the equation for the axis of symmetry for the parabola?
", "marks": 1, "unitTests": []}, {"checkingType": "absdiff", "showFeedbackIcon": true, "adaptiveMarkingPenalty": 0, "vsetRange": [0, 1], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "jme", "showPreview": true, "valuegenerators": [], "checkingAccuracy": 0.001, "failureRate": 1, "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "vsetRangePoints": 5, "useCustomName": false, "answer": "vector({xFocus[0]}/{xFocus[1]},{yFocus})", "prompt": "State the location of the focus of this parabola. Enter your answer as vector(x,y)
", "marks": 1}, {"displayAnswer": "x={directrix[0]}/{directrix[1]}", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "adaptiveMarkingPenalty": 0, "customName": "", "answer": "x={directrix[0]}/{directrix[1]}", "showCorrectAnswer": true, "variableReplacements": [], "scripts": {}, "matchMode": "regex", "extendBaseMarkingAlgorithm": true, "useCustomName": false, "type": "patternmatch", "variableReplacementStrategy": "originalfirst", "prompt": "What is the equation for the directrix of this parabola?
", "marks": 1, "unitTests": []}], "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "extensions": [], "statement": "GIVEN: $ x = \\simplify{ {a}(y-{k})^2 + {h} } $
", "variables": {"opensAnswer": {"name": "opensAnswer", "group": "Ungrouped variables", "definition": "(1+sign(a))/2", "description": "", "templateType": "anything"}, "directrix": {"name": "directrix", "group": "Ungrouped variables", "definition": "rational_approximation(h-p[0]/p[1])", "description": "", "templateType": "anything"}, "opens": {"name": "opens", "group": "Ungrouped variables", "definition": "[\"left\",\"right\"]", "description": "", "templateType": "anything"}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "rational_approximation(1/(4*a))", "description": "", "templateType": "anything"}, "xFocus": {"name": "xFocus", "group": "Ungrouped variables", "definition": "rational_approximation(h+p[0]/p[1])", "description": "", "templateType": "anything"}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(-10..10)", "description": "", "templateType": "anything"}, "yFocus": {"name": "yFocus", "group": "Ungrouped variables", "definition": "k", "description": "", "templateType": "anything"}, "signa": {"name": "signa", "group": "Ungrouped variables", "definition": "sign(a)", "description": "", "templateType": "anything"}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(-10..10)", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5#0.25)", "description": "", "templateType": "anything"}}, "preamble": {"css": "", "js": ""}, "functions": {}, "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/"}]}