// Numbas version: exam_results_page_options {"name": "Exponential population growth from formula with inverse", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Exponential population growth from formula with inverse", "tags": [], "metadata": {"description": "

Students are given an exponential equation and asked to evaluate it at two points.

\n

The constants in the exponential are randomised.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

A population of bacteria has a population, $P$, that can be described by the function $P = \\var{k} \\times \\var{a}^t $, where $t$ is the time in {timeperiod}.

", "advice": "

a) When $t=0$,

\n

$  P = \\var{k} \\times \\var{a}^t = \\var{k} \\times \\var{a}^0 = 1$

\n

\n

b) When $t = \\var{time}$,

\n

$P = \\var{k} \\times \\var{a}^\\var{time} = \\var{answer_raw}$

\n

When this is rounded to the nearest whole number, we get

\n

$P = \\var{answer}$

\n

\n

c) We need to take $t = -2$,

\n

$P = \\var{k} \\times \\var{a}^{-2} = \\var{ansc}$,

\n

When this is rounded to the nearest whole number, we get

\n

$P = \\var{ansc_r}$.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "1 + random(10..70)/100", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(1..10000)", "description": "", "templateType": "anything", "can_override": false}, "timeperiod": {"name": "timeperiod", "group": "Ungrouped variables", "definition": "timeperiodlist[timeperiodchoice]", "description": "", "templateType": "anything", "can_override": false}, "timeperiodchoice": {"name": "timeperiodchoice", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything", "can_override": false}, "timeperiodlist": {"name": "timeperiodlist", "group": "Ungrouped variables", "definition": "['days','weeks','months','years']", "description": "", "templateType": "anything", "can_override": false}, "time": {"name": "time", "group": "Ungrouped variables", "definition": "random(2..15)", "description": "", "templateType": "anything", "can_override": false}, "l": {"name": "l", "group": "Ungrouped variables", "definition": "random(k+2000, k+2500, k+3000, k+3500)", "description": "", "templateType": "anything", "can_override": false}, "k_over_l": {"name": "k_over_l", "group": "Ungrouped variables", "definition": "k/l", "description": "", "templateType": "anything", "can_override": false}, "ansc": {"name": "ansc", "group": "Ungrouped variables", "definition": "k*(a^(-2))", "description": "", "templateType": "anything", "can_override": false}, "ansc_r": {"name": "ansc_r", "group": "Ungrouped variables", "definition": "round(ansc)", "description": "", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "round(answer_raw)", "description": "", "templateType": "anything", "can_override": false}, "answer_raw": {"name": "answer_raw", "group": "Ungrouped variables", "definition": "k*a^time", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "k", "timeperiod", "timeperiodchoice", "timeperiodlist", "time", "l", "k_over_l", "ansc", "ansc_r", "answer", "answer_raw"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Part a)", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the initial population, $P$, when $t$ = 0?

", "minValue": "{k}", "maxValue": "{k}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the population, $P$, when $t = \\var{time}$ {timeperiod}

\n

Round your answer to the nearest whole number.

", "minValue": "round({k}*{a}^{time})", "maxValue": "round({k}*{a}^{time})", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What was the population, $P$, 2 {timeperiod} ago

\n

Round your answer to the nearest whole number.

\n

[[0]]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Gap 0", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "round({k}*{a}^{-2})", "maxValue": "round({k}*{a}^{-2})", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ugur Efem", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14200/"}]}]}], "contributors": [{"name": "Ugur Efem", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14200/"}]}