// Numbas version: exam_results_page_options {"name": "Eva'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": [{"advice": "", "statement": "

Use ^ to signify indices.

", "variables": {"expanded": {"description": "", "templateType": "anything", "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])"}, "p1": {"description": "", "templateType": "anything", "name": "p1", "group": "Ungrouped variables", "definition": "powers[0]"}, "powers": {"description": "", "templateType": "anything", "name": "powers", "group": "Ungrouped variables", "definition": "shuffle(2..9)[0..2]"}, "p2": {"description": "", "templateType": "anything", "name": "p2", "group": "Ungrouped variables", "definition": "powers[1]"}}, "tags": ["expanded", "exponent", "exponents", "index", "indices", "power", "powers"], "name": "Eva's copy of Indices: expanded vs index form (algebraic)", "variable_groups": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"gaps": [{"variableReplacements": [], "answersimplification": "basic", "type": "jme", "answer": "a^{expanded[1]}", "checkvariablenames": false, "vsetrangepoints": 5, "checkingtype": "absdiff", "notallowed": {"partialCredit": 0, "message": "

Nice try!

", "strings": ["^0", "^1", "*"], "showStrings": false}, "expectedvariablenames": [], "showFeedbackIcon": true, "vsetrange": [0, 1], "scripts": {"mark": {"order": "after", "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"}}, "checkingaccuracy": 0.001, "showpreview": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 1, "musthave": {"partialCredit": 0, "message": "

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

", "strings": ["^"], "showStrings": false}}], "variableReplacements": [], "type": "gapfill", "showFeedbackIcon": true, "stepsPenalty": "1", "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacements": [], "type": "information", "showFeedbackIcon": true, "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.

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0}], "prompt": "

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

", "showCorrectAnswer": true}, {"gaps": [{"variableReplacements": [], "type": "jme", "answer": "b", "checkvariablenames": false, "vsetrangepoints": 5, "checkingtype": "absdiff", "notallowed": {"partialCredit": 0, "message": "", "strings": ["^", "1"], "showStrings": false}, "expectedvariablenames": [], "showFeedbackIcon": true, "vsetrange": [0, 1], "scripts": {}, "checkingaccuracy": 0.001, "showpreview": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 1}], "variableReplacements": [], "type": "gapfill", "showFeedbackIcon": true, "stepsPenalty": "1", "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacements": [], "type": "information", "showFeedbackIcon": true, "prompt": "

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

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0}], "prompt": "

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

", "showCorrectAnswer": true}, {"variableReplacements": [], "steps": [{"variableReplacements": [], "type": "information", "showFeedbackIcon": true, "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}$

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0}], "showFeedbackIcon": true, "minMarks": 0, "maxMarks": 0, "matrix": [0, "1"], "type": "1_n_2", "prompt": "

True or False:

\n


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

", "distractors": ["", ""], "displayColumns": 0, "stepsPenalty": "1", "choices": ["

True

", "

False

"], "scripts": {}, "displayType": "radiogroup", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "shuffleChoices": false}, {"variableReplacements": [], "steps": [{"variableReplacements": [], "type": "information", "showFeedbackIcon": true, "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$

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0}], "showFeedbackIcon": true, "minMarks": 0, "maxMarks": 0, "matrix": ["1", "0"], "type": "1_n_2", "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}$.

", "distractors": ["", ""], "displayColumns": 0, "stepsPenalty": "1", "choices": ["

True

", "

False

"], "scripts": {}, "displayType": "radiogroup", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "shuffleChoices": false}], "ungrouped_variables": ["powers", "p1", "p2", "expanded"], "preamble": {"js": "", "css": ""}, "functions": {}, "extensions": [], "rulesets": {}, "type": "question", "contributors": [{"name": "Eva Szatmari", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/513/"}]}]}], "contributors": [{"name": "Eva Szatmari", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/513/"}]}