// Numbas version: exam_results_page_options {"name": "Population 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Population 2", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "

a) This question requires use of the equation that relates the relative populations of states to the temperature and the energy difference between them; 

\n

\\[\\frac{N_u}{N_l}=e^{\\frac{-{\\Delta}E}{kT}}\\]

\n

\\[{\\rm ln}(\\frac{N_u}{N_l})=\\frac{-{\\Delta}E}{kT}\\]

\n

\\[kT{\\rm ln}(\\frac{N_u}{N_l})={-{\\Delta}E}\\]

\n

\\[-(1.38~\\times~10^{-23}{\\rm~J~K^{-1}}\\times~\\var{temp}~{\\rm K}~\\times~{\\rm{ln}~}\\var{NuNl_rounded})=\\var{Energy_mantissa}\\times10^\\var{Energy_log}{\\rm J}\\]

\n

\n

\n

b) To convert the energy of a photon into a frequency;

\n

\\[E=h\\nu~\\]

\n

so

\n

\\[\\frac{E}{h}=\\nu=\\frac{\\var{Energy_mantissa}~\\times~10^\\var{Energy_log}~\\rm J}{6.626~\\times10^{-34}~\\rm~J~s}=\\var{Frequency_mantissa}\\times10^{\\var{Frequency_log}}~{\\rm Hz}\\]

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Frequency_log": {"name": "Frequency_log", "group": "Ungrouped variables", "definition": "floor(log(int_step*10^(int_step2)))", "description": "", "templateType": "anything", "can_override": false}, "Frequency_mantissa": {"name": "Frequency_mantissa", "group": "Ungrouped variables", "definition": "int_step*10^(int_step2)/10^(Frequency_log)", "description": "", "templateType": "anything", "can_override": false}, "Energy_mantissa": {"name": "Energy_mantissa", "group": "Ungrouped variables", "definition": "siground(dec(random(1000..5000)/1000),3)", "description": "", "templateType": "anything", "can_override": false}, "temp": {"name": "temp", "group": "Ungrouped variables", "definition": "random(100..350)", "description": "", "templateType": "anything", "can_override": false}, "Energy_log": {"name": "Energy_log", "group": "Ungrouped variables", "definition": "-21", "description": "", "templateType": "anything", "can_override": false}, "int_step": {"name": "int_step", "group": "Ungrouped variables", "definition": "siground(Energy_mantissa/6.626,3)", "description": "", "templateType": "anything", "can_override": false}, "int_step2": {"name": "int_step2", "group": "Ungrouped variables", "definition": "Energy_log+34", "description": "", "templateType": "anything", "can_override": false}, "A1": {"name": "A1", "group": "Ungrouped variables", "definition": "-energy_mantissa/(1.380649*temp)", "description": "", "templateType": "anything", "can_override": false}, "B1": {"name": "B1", "group": "Ungrouped variables", "definition": "10^(Energy_log+23)", "description": "", "templateType": "anything", "can_override": false}, "NuNl": {"name": "NuNl", "group": "Ungrouped variables", "definition": "exp(A1*B1)", "description": "", "templateType": "anything", "can_override": false}, "NuNl_rounded": {"name": "NuNl_rounded", "group": "Ungrouped variables", "definition": "siground(NuNl,3)", "description": "", "templateType": "anything", "can_override": false}, "EfromNuNl": {"name": "EfromNuNl", "group": "Ungrouped variables", "definition": "ln(NuNl)*1.380649*temp", "description": "", "templateType": "anything", "can_override": false}, "EfromNuNl_rounded": {"name": "EfromNuNl_rounded", "group": "Ungrouped variables", "definition": "ln(nunl_rounded)*1.380649*temp", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["temp", "Energy_mantissa", "Energy_log", "Frequency_log", "Frequency_mantissa", "int_step", "int_step2", "A1", "B1", "NuNl", "NuNl_rounded", "EfromNuNl", "EfromNuNl_rounded"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "student_significand (The significand as the student entered it):\n parsenumber(studentanswer[0],\"en\")\n\nsignificand_size (If student's significand is written a*10^n, 1<=a<10, this is n):\n floor(log(abs(student_significand)))\n\nstudent_exponent (The exponent as the student wrote it):\n parsenumber(studentanswer[1],\"en\")\n\nadjusted_exponent (The exponent of the student's number, taking into account the size of their significand): \n student_exponent + significand_size\n\nadjusted_significand (The student's significand, scaled into the range 1..10):\n student_significand/(10^significand_size)\n\nsignificand_feedback (Feedback on the adjusted significand: mark gap 0):\n feedback(\"Significand:\");\n let(result,apply_marking_script(\"numberentry\",string(adjusted_significand), gaps[0][\"settings\"],gaps[0][\"marks\"]),\n concat_feedback(result[\"mark\"][\"feedback\"],0.5)\n )\n\nexponent_feedback (Feedback on the adjusted exponent: mark gap 1):\n feedback(\"Exponent:\");\n let(result,apply_marking_script(\"numberentry\",string(adjusted_exponent), gaps[1][\"settings\"],gaps[1][\"marks\"]),\n concat_feedback(result[\"mark\"][\"feedback\"],0.5)\n )\n\nmark:\n apply(significand_feedback);\n apply(exponent_feedback)\n\ninterpreted_answer: [adjusted_significand, adjusted_exponent]", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the energy difference, $\\Delta$E, between two states given that the relative populations of these states, $N_u/N_l$={NuNl_rounded} when the temperature, T, is {temp} K. The number of molecules in the upper state is $N_u$ and the number of molecules in the lower state is $N_l$;  

\n

 ${\\Delta}E$ = [[0]] $\\times$ 10[[1]] J  

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{Energy_mantissa}-{Energy_mantissa}/30", "maxValue": "{Energy_mantissa}+{Energy_mantissa}/30", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{Energy_log}+{Energy_log}/50", "maxValue": "{Energy_log}-{Energy_log}/50", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "student_significand (The significand as the student entered it):\n parsenumber(studentanswer[0],\"en\")\n\nsignificand_size (If student's significand is written a*10^n, 1<=a<10, this is n):\n floor(log(abs(student_significand)))\n\nstudent_exponent (The exponent as the student wrote it):\n parsenumber(studentanswer[1],\"en\")\n\nadjusted_exponent (The exponent of the student's number, taking into account the size of their significand): \n student_exponent + significand_size\n\nadjusted_significand (The student's significand, scaled into the range 1..10):\n student_significand/(10^significand_size)\n\nsignificand_feedback (Feedback on the adjusted significand: mark gap 0):\n feedback(\"Significand:\");\n let(result,apply_marking_script(\"numberentry\",string(adjusted_significand), gaps[0][\"settings\"],gaps[0][\"marks\"]),\n concat_feedback(result[\"mark\"][\"feedback\"],0.5)\n )\n\nexponent_feedback (Feedback on the adjusted exponent: mark gap 1):\n feedback(\"Exponent:\");\n let(result,apply_marking_script(\"numberentry\",string(adjusted_exponent), gaps[1][\"settings\"],gaps[1][\"marks\"]),\n concat_feedback(result[\"mark\"][\"feedback\"],0.5)\n )\n\nmark:\n apply(significand_feedback);\n apply(exponent_feedback)\n\ninterpreted_answer: [adjusted_significand, adjusted_exponent]", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A transition occurs between the upper state and the lower state such that a photon is emitted. What is the frequency, $\\nu$, of the photon (in Hz)? 

\n

[[0]] $\\times$ 10[[1]] Hz

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{Frequency_mantissa}-{Frequency_mantissa}/50", "maxValue": "{Frequency_mantissa}+{Frequency_mantissa}/50", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{Frequency_log}-{Frequency_log}", "maxValue": "{Frequency_log}+{Frequency_log}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Nick Walker", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2416/"}]}]}], "contributors": [{"name": "Nick Walker", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2416/"}]}