// Numbas version: exam_results_page_options {"name": "Calculating powers (-a^(-1))", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"marks": 0, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "gaps": [{"marks": 1, "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "variableReplacements": [], "maxValue": "-a", "showCorrectAnswer": true, "allowFractions": false, "mustBeReducedPC": 0, "scripts": {}, "type": "numberentry", "minValue": "-a"}], "prompt": "

$-\\var{a}^{-1}=\\ $ 1[[0]].

", "type": "gapfill", "showFeedbackIcon": true}], "preamble": {"js": "document.createElement('fraction');\ndocument.createElement('numerator');\ndocument.createElement('denominator');", "css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n"}, "variablesTest": {"maxRuns": 100, "condition": "a<>b"}, "extensions": [], "variables": {"a": {"templateType": "anything", "name": "a", "description": "

This is the base.

", "group": "Ungrouped variables", "definition": "random(2..7)"}, "b": {"templateType": "anything", "name": "b", "description": "

This is the absolute value of the exponent.

", "group": "Ungrouped variables", "definition": "random(2..7)"}}, "name": "Calculating powers (-a^(-1))", "tags": [], "statement": "

Calculate the following power.

\n

If you think the answer should be negative then a negative sign should be entered in the denominator.

\n

", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

This question tests a student's ability to raise a negative base to an exponent of -1.

"}, "ungrouped_variables": ["a", "b"], "advice": "

The correct calculation is $-\\var{a}^{-1}=-\\dfrac{1}{\\var{a}^1}=-\\dfrac{1}{\\var{a}}=\\dfrac{1}{\\boxed{-\\var{a}}}$.

\n

Remember that any number raised to the power 1 is just the number itself.

", "functions": {}, "rulesets": {"std": ["all"]}, "variable_groups": [], "type": "question", "contributors": [{"name": "Anthony Brown", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/799/"}]}]}], "contributors": [{"name": "Anthony Brown", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/799/"}]}