// Numbas version: exam_results_page_options {"name": "Algebra: rearrange physics equations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Algebra: rearrange physics equations", "tags": [], "metadata": {"description": "

student is to re-arrange the equations $pV=nRT$ and $mgh = \\frac{1}{2}mv^2$

", "licence": "None specified"}, "statement": "

To enter $h_1$, you have to type `h_1'

\n

When multiplying variables together you must include a `*' to indicate multiplication.  E.g. if you want $mg$ you must type `m*g'.  If you just type `mg', this system will treat `mg' as a single word rather than two separate variables multiplied together.

\n

-------------------------------------------------------------------

", "advice": "

Re-arranging equations uses the same reasoning as solving equations. 3.1, 3.2 and 3.3 contain relevant background and examples.

", "rulesets": {}, "extensions": [], "variables": {"pv": {"name": "pv", "group": "Ungrouped variables", "definition": "[\n [expression('p'),expression('n*R*T/V')],\n [expression('V'),expression('n*R*T/p')],\n [expression('n'),expression('p*V/(R*T)')],\n [expression('R'),expression('p*V/(n*T)')],\n [expression('T'),expression('p*V/(n*R)')]\n ]", "description": "

first entry in each row is variable you want by itself.  second entry in each row is what the answer is.

", "templateType": "anything"}, "mgh": {"name": "mgh", "group": "Ungrouped variables", "definition": "[\n [expression('v'),expression('sqrt(2g*(h_2-h_1))')],\n [expression('h_2'),expression('v^2/(2g) + h_1')],\n [expression('h_1'),expression('h_2 - v^2/(2g) ')],\n [expression('g'),expression('(v^2)/(2(h_2-h_1))')]\n ]", "description": "

first entry in each row is variable you want by itself.  second entry in each row is what the answer is.

", "templateType": "anything"}, "rand": {"name": "rand", "group": "Ungrouped variables", "definition": "[\n random(0..4),\n random(0..3)]", "description": "

this randomises which row will be selected

", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["pv", "mgh", "rand"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$pV=nRT$. Re-arrange this to make $\\simplify{{pv[rand[0]][0]}}$ the subject. 

\n

$\\simplify{{pv[rand[0]][0]}}=$[[0]]

\n

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "1", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{pv[rand[0]][1]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": [{"name": "n", "value": ""}, {"name": "p", "value": ""}, {"name": "r", "value": ""}, {"name": "t", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$mg (h_2-h_1) =  \\frac{1}{2}mv^2$. We know $v$ is positive. Re-arrange this to make $\\simplify{{mgh[rand[1]][0]}}$ the subject. 

\n

$\\simplify{{mgh[rand[1]][0]}}=$[[0]]

\n

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "2", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{mgh[rand[1]][1]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": [{"name": "g", "value": ""}, {"name": "h_2", "value": ""}, {"name": "v", "value": ""}]}], "sortAnswers": false}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Have you entered the answers correctly?  Did you type `h_1' for $h_1$?  Did you use a `*' for multiplication between variables?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Yes", "No"], "matrix": [0, 0], "distractors": ["", ""]}], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}]}], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}