// Numbas version: exam_results_page_options {"name": "PreCal Write equation of an ellipse via complete the square", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International", "description": ""}, "advice": "", "name": "PreCal Write equation of an ellipse via complete the square", "functions": {}, "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["h", "k", "a", "b", "cx2", "cy2", "cx", "cy", "f", "signh", "signk", "operator", "oph", "opk", "hVal", "kVal", "a2", "b2"], "tags": [], "variables": {"cx": {"definition": "-2*b^2*h", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "cx"}, "operator": {"definition": "[\"+\",\"-\"]", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "operator"}, "h": {"definition": "random(-10..10)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "h"}, "a2": {"definition": "a^2", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "a2"}, "cx2": {"definition": "b^2", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "cx2"}, "cy2": {"definition": "a^2", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "cy2"}, "kVal": {"definition": "abs(k)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "kVal"}, "a": {"definition": "random(2..10)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "a"}, "cy": {"definition": "-2*a^2*k", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "cy"}, "k": {"definition": "random(-10..10)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "k"}, "opk": {"definition": "operator[(1+signk)/2]", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "opk"}, "hVal": {"definition": "abs(h)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "hVal"}, "b": {"definition": "random(2..10 except a)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "b"}, "b2": {"definition": "b^2", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "b2"}, "signh": {"definition": "sign(h)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "signh"}, "oph": {"definition": "operator[(1+signh)/2]", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "oph"}, "f": {"definition": "a^2*b^2-b^2*h^2-a^2*k^2", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "f"}, "signk": {"definition": "sign(k)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "signk"}}, "extensions": [], "statement": "

Write the equation of the ellipse in standard from given the equation:

\n

$\\simplify{{cx2}x^2+{cy2}y^2+{cx}x+{cy}y-{f}=0}$

", "parts": [{"prompt": "

The standard form equation of the ellipse is: [[0]]

", "marks": 0, "customName": "", "adaptiveMarkingPenalty": 0, "showCorrectAnswer": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "scripts": {}, "type": "gapfill", "sortAnswers": false, "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "gaps": [{"marks": 1, "customName": "", "adaptiveMarkingPenalty": 0, "showCorrectAnswer": true, "unitTests": [], "answer": "(x{oph}{hVal})^2/{a2}+(y{opk}{kVal})^2/{b2}=1", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "scripts": {}, "type": "patternmatch", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "displayAnswer": "(x{oph}{hVal})^2/{a2}+(y{opk}{kVal})^2/{b2}=1", "matchMode": "exact"}]}], "variable_groups": [], "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/"}]}