// Numbas version: exam_results_page_options {"name": "Ella's copy of Indices: expanded vs index form (algebraic)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "sortAnswers": false, "stepsPenalty": "1", "marks": 0, "unitTests": [], "prompt": "

The expression $\\var{latex(expanded[0])}$ is in expanded form,  the same expression in index form is [[0]].

", "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

For example, $a\\times a\\times a\\times a$ is written as $a^4$ in index form.

\n

\n

In the above example, a is the base and 4 is the power/exponent/index. The power signifies how many bases are multiplied together.

", "type": "information", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "variableReplacements": [], "unitTests": [], "customMarkingAlgorithm": "", "marks": 0, "extendBaseMarkingAlgorithm": true}], "gaps": [{"checkingType": "absdiff", "showPreview": true, "checkVariableNames": false, "answer": "a^{expanded[1]}", "notallowed": {"strings": ["^0", "^1", "*"], "message": "

Nice try!

", "partialCredit": 0, "showStrings": false}, "marks": 1, "unitTests": [], "musthave": {"strings": ["^"], "message": "

You need to use indices. Use ^ to signify indices.

", "partialCredit": 0, "showStrings": false}, "type": "jme", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "vsetRange": [0, 1], "answerSimplification": "basic", "failureRate": 1, "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {"mark": {"script": "// Parse the student's answer as a syntax tree\nvar studentTree = Numbas.jme.compile(this.studentAnswer,Numbas.jme.builtinScope);\n\n// Create the pattern to match against \n// We just want to check that the student has written \"something to the power of something\"\nvar rule = Numbas.jme.compile('?? ^ ??');\n\n// Check the student's answer matches the pattern. \nvar m = Numbas.jme.display.matchTree(rule,studentTree,true);\n\n// If not, take away marks\nif(!m) {\n this.multCredit(0,'Your answer is not in the form $x^y$.');\n}\n", "order": "after"}}, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "variableReplacements": [], "expectedVariableNames": []}], "variableReplacements": [], "customMarkingAlgorithm": "", "type": "gapfill"}, {"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "sortAnswers": false, "stepsPenalty": "1", "marks": 0, "unitTests": [], "prompt": "

The expression $b^1$ is normally written as [[0]]

", "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

$b^1$ just means there is one $b$. So we normally don't write the power. We normally just write $b$.

", "type": "information", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "variableReplacements": [], "unitTests": [], "customMarkingAlgorithm": "", "marks": 0, "extendBaseMarkingAlgorithm": true}], "gaps": [{"notallowed": {"strings": ["^", "1"], "message": "", "partialCredit": 0, "showStrings": false}, "checkingType": "absdiff", "showPreview": true, "vsetRangePoints": 5, "failureRate": 1, "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "vsetRange": [0, 1], "marks": 1, "unitTests": [], "checkingAccuracy": 0.001, "checkVariableNames": false, "type": "jme", "variableReplacementStrategy": "originalfirst", "answer": "b", "variableReplacements": [], "expectedVariableNames": [], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}], "variableReplacements": [], "customMarkingAlgorithm": "", "type": "gapfill"}, {"displayColumns": 0, "stepsPenalty": "1", "minMarks": 0, "marks": 0, "unitTests": [], "steps": [{"prompt": "

The power is acting on the whole fraction, for example:

\n

\\[\\left(\\frac{c}{x}\\right)^2=\\left(\\frac{c}{x}\\right)\\times\\left(\\frac{c}{x}\\right)=\\frac{c^2}{x^2}\\]

\n
\n

In general $\\left(\\frac{a}{b}\\right)^n=\\frac{a^n}{b^n}$

", "type": "information", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "variableReplacements": [], "unitTests": [], "customMarkingAlgorithm": "", "marks": 0, "extendBaseMarkingAlgorithm": true}], "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "customMarkingAlgorithm": "", "choices": ["

True

", "

False

"], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "displayType": "radiogroup", "showCellAnswerState": true, "maxMarks": 0, "extendBaseMarkingAlgorithm": true, "shuffleChoices": false, "distractors": ["", ""], "matrix": [0, "1"], "prompt": "

True or False:

\n


The expression $\\displaystyle\\left(\\frac{c}{x}\\right)^\\var{p2}$ is equivalent to $\\displaystyle\\frac{c^\\var{p2}}{x}$.

"}, {"displayColumns": 0, "stepsPenalty": "1", "minMarks": 0, "marks": 0, "unitTests": [], "steps": [{"prompt": "

The power is acting on the whole bracket, for example:

\n

\\[\\left(m\\times n\\right)^2=\\left(m\\times n\\right)\\times\\left(m\\times n\\right)=m^2\\times n^2\\]

\n
\n

In general $\\left(ab\\right)^n=a^n b^n$

", "type": "information", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "variableReplacements": [], "unitTests": [], "customMarkingAlgorithm": "", "marks": 0, "extendBaseMarkingAlgorithm": true}], "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "customMarkingAlgorithm": "", "choices": ["

True

", "

False

"], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "displayType": "radiogroup", "showCellAnswerState": true, "maxMarks": 0, "extendBaseMarkingAlgorithm": true, "shuffleChoices": false, "distractors": ["", ""], "matrix": ["1", "0"], "prompt": "

True or False:

\n


The expression $\\displaystyle\\left(m\\times n\\right)^\\var{p1}$ is equivalent to $\\displaystyle m^\\var{p1} n^\\var{p1}$.

"}], "extensions": [], "tags": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "name": "Ella's copy of Indices: expanded vs index form (algebraic)", "statement": "

Use ^ to signify indices.

", "variable_groups": [], "advice": "", "ungrouped_variables": ["powers", "p1", "p2", "expanded"], "variables": {"p1": {"name": "p1", "group": "Ungrouped variables", "definition": "powers[0]", "templateType": "anything", "description": ""}, "powers": {"name": "powers", "group": "Ungrouped variables", "definition": "shuffle(2..9)[0..2]", "templateType": "anything", "description": ""}, "p2": {"name": "p2", "group": "Ungrouped variables", "definition": "powers[1]", "templateType": "anything", "description": ""}, "expanded": {"name": "expanded", "group": "Ungrouped variables", "definition": "random([\"a\\\\times a \",2],[\"a \\\\times a \\\\times a\",3],[\"a \\\\times a \\\\times a \\\\times a\",4],[\"a \\\\times a \\\\times a \\\\times a \\\\times a\",5])", "templateType": "anything", "description": ""}}, "preamble": {"css": "", "js": ""}, "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Jason Wraxall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3246/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Jason Wraxall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3246/"}]}