// Numbas version: exam_results_page_options {"name": "Marte's copy of Bokstavregning og parenteser 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": ["bokstavregning", "paranteser"], "name": "Marte's copy of Bokstavregning og parenteser 1", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Forenkling av algebraiske uttrykk

"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "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)

", "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.

", "ungrouped_variables": ["a1", "a2", "a3", "a4", "b1", "b2", "b3", "b4", "b5", "b6", "c1", "c2", "c3", "c4", "c5", "d1", "d2", "d3", "d4"], "functions": {}, "variables": {"d4": {"group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "d4", "description": ""}, "d3": {"group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "d3", "description": ""}, "a1": {"group": "Ungrouped variables", "definition": "random(-5..5 except [0, 1, -1])", "templateType": "anything", "name": "a1", "description": ""}, "c2": {"group": "Ungrouped variables", "definition": "random(2..7)", "templateType": "anything", "name": "c2", "description": ""}, "d1": {"group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "d1", "description": ""}, "c3": {"group": "Ungrouped variables", "definition": "random(5..8)", "templateType": "anything", "name": "c3", "description": ""}, "c1": {"group": "Ungrouped variables", "definition": "random(-3..3 except[0, 1, -1])", "templateType": "anything", "name": "c1", "description": ""}, "b1": {"group": "Ungrouped variables", "definition": "random(-7..8 except [0, 1, -1])", "templateType": "anything", "name": "b1", "description": ""}, "a4": {"group": "Ungrouped variables", "definition": "random(3..8)", "templateType": "anything", "name": "a4", "description": ""}, "c5": {"group": "Ungrouped variables", "definition": "random(5..7)", "templateType": "anything", "name": "c5", "description": ""}, "b5": {"group": "Ungrouped variables", "definition": "random(2..5)", "templateType": "anything", "name": "b5", "description": ""}, "c4": {"group": "Ungrouped variables", "definition": "random(2..3)", "templateType": "anything", "name": "c4", "description": ""}, "a2": {"group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "a2", "description": ""}, "b4": {"group": "Ungrouped variables", "definition": "random(2..8)", "templateType": "anything", "name": "b4", "description": ""}, "d2": {"group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "d2", "description": ""}, "b6": {"group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "b6", "description": ""}, "b3": {"group": "Ungrouped variables", "definition": "random(2..4)", "templateType": "anything", "name": "b3", "description": ""}, "b2": {"group": "Ungrouped variables", "definition": "random(2..9)", "templateType": "anything", "name": "b2", "description": ""}, "a3": {"group": "Ungrouped variables", "definition": "random(2..9)", "templateType": "anything", "name": "a3", "description": ""}}, "extensions": [], "preamble": {"js": "", "css": ""}, "rulesets": {"std": ["all", "!collectNumbers "]}, "parts": [{"gaps": [{"maxlength": {"message": "

Du har ikke trukket sammen alle mulige ledd

", "length": "10", "partialCredit": 0}, "checkingaccuracy": 0.001, "checkingtype": "absdiff", "scripts": {}, "variableReplacements": [], "vsetrangepoints": 5, "vsetrange": [0, 1], "answersimplification": "std", "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "marks": 1, "variableReplacementStrategy": "originalfirst", "type": "jme", "showCorrectAnswer": true, "showFeedbackIcon": true, "answer": "{a1+a3}a+{a4-a2}b"}], "scripts": {}, "variableReplacements": [], "prompt": "

Trekk sammen

\n

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

\n

[[0]]

", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showCorrectAnswer": true, "marks": 0, "steps": [{"scripts": {}, "variableReplacements": [], "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", "type": "information", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true}], "showFeedbackIcon": true, "stepsPenalty": 0}, {"gaps": [{"maxlength": {"message": "

Du har ikke trukket sammen alle mulige ledd

", "length": "21", "partialCredit": 0}, "checkingaccuracy": 0.001, "checkingtype": "absdiff", "scripts": {}, "variableReplacements": [], "vsetrangepoints": 5, "vsetrange": [0, 1], "answersimplification": "std", "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "marks": 1, "variableReplacementStrategy": "originalfirst", "type": "jme", "showCorrectAnswer": true, "showFeedbackIcon": true, "answer": "{b1+b4}a^2+{b2-b5}a+{b3-b6}"}], "scripts": {}, "variableReplacements": [], "prompt": "

Trekk sammen

\n

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

\n

 [[0]]

", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showCorrectAnswer": true, "marks": 0, "steps": [{"scripts": {}, "variableReplacements": [], "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", "type": "information", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true}], "showFeedbackIcon": true, "stepsPenalty": 0}, {"gaps": [{"maxlength": {"message": "

Du har ikke trukket sammen alle mulige ledd

", "length": "15", "partialCredit": 0}, "checkingaccuracy": 0.001, "checkingtype": "absdiff", "scripts": {}, "variableReplacements": [], "notallowed": {"message": "", "strings": ["("], "showStrings": false, "partialCredit": 0}, "vsetrangepoints": 5, "vsetrange": [0, 1], "answersimplification": "std", "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "marks": 1, "variableReplacementStrategy": "originalfirst", "type": "jme", "showCorrectAnswer": true, "showFeedbackIcon": true, "answer": "{d1-d3}a+{d2+d4}b"}], "scripts": {}, "variableReplacements": [], "prompt": "

Løs opp parentesene og trekk sammen

\n

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

\n

[[0]]

", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showCorrectAnswer": true, "marks": 0, "steps": [{"scripts": {}, "variableReplacements": [], "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", "type": "information", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true}], "showFeedbackIcon": true, "stepsPenalty": 0}], "variable_groups": [], "type": "question", "contributors": [{"name": "Marte Br\u00e5talien", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2349/"}]}]}], "contributors": [{"name": "Marte Br\u00e5talien", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2349/"}]}