// Numbas version: exam_results_page_options {"name": "Solving for a geometric series (simple)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

The first term of a geometric series is \\(\\var{a1}\\) and the sum to infinity of the series is \\(\\var{s2}\\).

", "metadata": {"description": "

Solving for a geometric series

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "preamble": {"js": "", "css": ""}, "functions": {}, "extensions": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "name": "Solving for a geometric series (simple)", "variable_groups": [], "rulesets": {}, "parts": [{"extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showFeedbackIcon": true, "sortAnswers": false, "marks": 0, "unitTests": [], "gaps": [{"extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "precisionPartialCredit": 0, "unitTests": [], "correctAnswerStyle": "plain", "allowFractions": false, "showPrecisionHint": true, "marks": 1, "showFeedbackIcon": true, "precision": "3", "type": "numberentry", "variableReplacements": [], "minValue": "{r}", "precisionType": "dp", "showCorrectAnswer": true, "strictPrecision": false, "customMarkingAlgorithm": "", "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "{r}", "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false}], "customMarkingAlgorithm": "", "showCorrectAnswer": true, "scripts": {}, "prompt": "

Determine the value of the common ratio.    \\(r\\) = [[0]]

"}], "advice": "

\\(S_{\\infty}=\\frac{a}{1-r}=\\var{s2}\\)

\n

Rearranging gives:

\n

$r=1-\\frac{a}{S_{\\infty}}=1-\\frac{\\var{a}}{\\var{s2}}=\\var{precround(r,3)}$

\n

", "tags": [], "ungrouped_variables": ["n", "a1", "s2", "r"], "variables": {"a1": {"name": "a1", "definition": "random(6..10#0.5)", "description": "", "group": "Ungrouped variables", "templateType": "randrange"}, "n": {"name": "n", "definition": "random(5..13#2)", "description": "", "group": "Ungrouped variables", "templateType": "randrange"}, "s2": {"name": "s2", "definition": "random(11..20#0.1)", "description": "", "group": "Ungrouped variables", "templateType": "randrange"}, "r": {"name": "r", "definition": "1-a1/s2", "description": "", "group": "Ungrouped variables", "templateType": "anything"}}, "type": "question", "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}