// Numbas version: exam_results_page_options {"name": "Bokstavregning og parenteser 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": ["bokstavregning", "paranteser"], "ungrouped_variables": ["a1", "a2", "a3", "a4", "b1", "b2", "b3", "b4", "b5", "b6", "c1", "c2", "c3", "c4", "c5", "d1", "d2", "d3", "d4"], "preamble": {"js": "", "css": ""}, "name": "Bokstavregning og parenteser 1", "functions": {}, "variables": {"c1": {"description": "", "definition": "random(-3..3 except[0, 1, -1])", "templateType": "anything", "name": "c1", "group": "Ungrouped variables"}, "b1": {"description": "", "definition": "random(-7..8 except [0, 1, -1])", "templateType": "anything", "name": "b1", "group": "Ungrouped variables"}, "c2": {"description": "", "definition": "random(2..7)", "templateType": "anything", "name": "c2", "group": "Ungrouped variables"}, "b2": {"description": "", "definition": "random(2..9)", "templateType": "anything", "name": "b2", "group": "Ungrouped variables"}, "b6": {"description": "", "definition": "random(2..6)", "templateType": "anything", "name": "b6", "group": "Ungrouped variables"}, "a2": {"description": "", "definition": "random(2..6)", "templateType": "anything", "name": "a2", "group": "Ungrouped variables"}, "b4": {"description": "", "definition": "random(2..8)", "templateType": "anything", "name": "b4", "group": "Ungrouped variables"}, "b3": {"description": "", "definition": "random(2..4)", "templateType": "anything", "name": "b3", "group": "Ungrouped variables"}, "d4": {"description": "", "definition": "random(2..6)", "templateType": "anything", "name": "d4", "group": "Ungrouped variables"}, "d3": {"description": "", "definition": "random(2..6)", "templateType": "anything", "name": "d3", "group": "Ungrouped variables"}, "c5": {"description": "", "definition": "random(5..7)", "templateType": "anything", "name": "c5", "group": "Ungrouped variables"}, "c4": {"description": "", "definition": "random(2..3)", "templateType": "anything", "name": "c4", "group": "Ungrouped variables"}, "a1": {"description": "", "definition": "random(-5..5 except [0, 1, -1])", "templateType": "anything", "name": "a1", "group": "Ungrouped variables"}, "a3": {"description": "", "definition": "random(2..9)", "templateType": "anything", "name": "a3", "group": "Ungrouped variables"}, "c3": {"description": "", "definition": "random(5..8)", "templateType": "anything", "name": "c3", "group": "Ungrouped variables"}, "d1": {"description": "", "definition": "random(2..6)", "templateType": "anything", "name": "d1", "group": "Ungrouped variables"}, "d2": {"description": "", "definition": "random(2..6)", "templateType": "anything", "name": "d2", "group": "Ungrouped variables"}, "a4": {"description": "", "definition": "random(3..8)", "templateType": "anything", "name": "a4", "group": "Ungrouped variables"}, "b5": {"description": "", "definition": "random(2..5)", "templateType": "anything", "name": "b5", "group": "Ungrouped variables"}}, "statement": "

Du kan skrive inn algebraiske uttrykk tekstboksene. For eksempel kan du skrive a^3 og få \$a^3\$ og enten 2*a-3*b eller bare 2a-3b og få  \$2a-3b\$. Det anbefales at dere bruker '*' mellom variabler, for at NUMBAS skal tolke det dere skriver riktig. Skriv for eksempel a*b heller enn ab, og a^2*b heller enn a^2b for å få \$a^2b\$.

\n

Ved siden av input-boksen ser dere hvordan NUMBAS tolker det dere skriver.

", "parts": [{"showCorrectAnswer": true, "steps": [{"showCorrectAnswer": true, "type": "information", "scripts": {}, "showFeedbackIcon": true, "prompt": "

Trekk sammen ledd av samme type, for eksempel er \$7a-3a = 4a\$, mens \$2b\$ og \$3a\$ er ikke av samme type og kan ikke trekkes sammen.

\n

", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}], "type": "gapfill", "scripts": {}, "showFeedbackIcon": true, "prompt": "

Trekk sammen

\n

\$\\var{a1}a-\\var{a2}b+\\var{a3}a+\\var{a4}b =\$

\n

[[0]]

", "gaps": [{"showCorrectAnswer": true, "type": "jme", "showFeedbackIcon": true, "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "showpreview": true, "expectedvariablenames": [], "answersimplification": "std", "maxlength": {"length": "10", "message": "

Du har ikke trukket sammen alle mulige ledd

", "partialCredit": 0}, "vsetrange": [0, 1], "scripts": {}, "checkingtype": "absdiff", "vsetrangepoints": 5, "checkvariablenames": false, "answer": "{a1+a3}a+{a4-a2}b", "variableReplacements": [], "marks": 1}], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "stepsPenalty": 0}, {"showCorrectAnswer": true, "steps": [{"showCorrectAnswer": true, "type": "information", "scripts": {}, "showFeedbackIcon": true, "prompt": "

Trekk sammen ledd av samme type, for eksempel er \$2a^2+3a^2 = 5a^2\$, mens \$2a^2\$ og \$3a\$ er ikke av samme type og kan ikke trekkes sammen.

\n

", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}], "type": "gapfill", "scripts": {}, "showFeedbackIcon": true, "prompt": "

Trekk sammen

\n

\$\\var{b1}a^2+\\var{b2}a+\\var{b3}+\\var{b4}a^2-\\var{b5}a-\\var{b6}=\$

\n

[[0]]

", "gaps": [{"showCorrectAnswer": true, "type": "jme", "showFeedbackIcon": true, "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "showpreview": true, "expectedvariablenames": [], "answersimplification": "std", "maxlength": {"length": "21", "message": "

Du har ikke trukket sammen alle mulige ledd

", "partialCredit": 0}, "vsetrange": [0, 1], "scripts": {}, "checkingtype": "absdiff", "vsetrangepoints": 5, "checkvariablenames": false, "answer": "{b1+b4}a^2+{b2-b5}a+{b3-b6}", "variableReplacements": [], "marks": 1}], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "stepsPenalty": 0}, {"showCorrectAnswer": true, "steps": [{"showCorrectAnswer": true, "type": "information", "scripts": {}, "showFeedbackIcon": true, "prompt": "

Huk: når vi løser opp en parantes med minus foran, må vi bytte fortegn på leddene inne i parentesen. Eksempel:

\n

\n

\$2a-(a-3b)=2a-a+3b=a+3b\$

", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}], "type": "gapfill", "scripts": {}, "showFeedbackIcon": true, "prompt": "

Løs opp parentesene og trekk sammen

\n

\$(\\var{d1}a+\\var{d2}b)-(\\var{d3}a-\\var{d4}b) =\$

\n

[[0]]

", "gaps": [{"showCorrectAnswer": true, "notallowed": {"showStrings": false, "message": "", "strings": ["("], "partialCredit": 0}, "type": "jme", "showFeedbackIcon": true, "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "showpreview": true, "expectedvariablenames": [], "answersimplification": "std", "maxlength": {"length": "15", "message": "

Du har ikke trukket sammen alle mulige ledd

", "partialCredit": 0}, "vsetrange": [0, 1], "scripts": {}, "checkingtype": "absdiff", "vsetrangepoints": 5, "checkvariablenames": false, "answer": "{d1-d3}a+{d2+d4}b", "variableReplacements": [], "marks": 1}], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "stepsPenalty": 0}], "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": [], "variable_groups": [], "advice": "

\n

Remove the brackets and gather the x terms together and also the number terms together.

\n

When in fraction form, get the lowest common multiple (LCM), and multiply the top line by how many times the divisor goes into the LCM.

\n

Rule for multiping out brackets:

\n

(a\$x\$ - b)(c\$x\$ + d) = (a * c)\$x^2\$ + ((a * d) + ((-b) *c)))\$x\$ + ((-b) * d)

\n

Rule for squaring brackets:

\n

(-a\$x\$ + b)\$^2\$ = (-a * -a)\$x^2\$ + (2 * (-a) *b)\$x\$ + (b * b)