// Numbas version: exam_results_page_options {"name": "Algebra: Combine Like Terms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Algebra: Combine Like Terms", "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"name": "a", "description": "", "definition": "random(1..10)", "templateType": "anything", "group": "Ungrouped variables"}, "f": {"name": "f", "description": "", "definition": "random(-5..10 except 0 except -b)", "templateType": "anything", "group": "Ungrouped variables"}, "b": {"name": "b", "description": "", "definition": "random(-5..10 except 0)", "templateType": "anything", "group": "Ungrouped variables"}, "c": {"name": "c", "description": "", "definition": "random(-5..10 except 0)", "templateType": "anything", "group": "Ungrouped variables"}, "d": {"name": "d", "description": "", "definition": "random(-5..10 except 0)", "templateType": "anything", "group": "Ungrouped variables"}}, "ungrouped_variables": ["a", "c", "b", "d", "f"], "variable_groups": [], "statement": "

Simplify the following expression by combining \"like\" terms.

", "advice": "

The idea is to collect together and combine any terms that are the same kind of term so:

\n

$\\var{b}$ and $\\var{f}$ are ordinary numbers. We can combine them to get $\\var{b+f}$

\n

We can combine $\\var{a}x$ and $\\var{d}x$ to get $\\var{a+d}x$.

\n

There are also $\\var{c}$ times $x^2$. So our answer is:

\n

$\\var{c}x^2+\\var{a+d}x+\\var{b+f}$

", "rulesets": {}, "metadata": {"description": "

As it says on the tin!

\n

Random terms including powers of x.

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"answer": "{c}x^2+({a}+{d})x+({b}+{f})", "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "useCustomName": false, "variableReplacements": [], "type": "jme", "showPreview": true, "valuegenerators": [{"name": "x", "value": ""}], "scripts": {}, "checkingType": "absdiff", "unitTests": [], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "marks": 1, "customName": "", "vsetRangePoints": 5, "checkVariableNames": false, "failureRate": 1, "vsetRange": [0, 1], "showCorrectAnswer": true, "adaptiveMarkingPenalty": 0, "prompt": "

$\\simplify[!collectNumbers]{{a}x+{b}+{c}x^2+{d}x+{f}}$

", "variableReplacementStrategy": "originalfirst"}], "preamble": {"js": "", "css": ""}, "tags": [], "functions": {}, "extensions": [], "contributors": [{"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}]}]}], "contributors": [{"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}]}