// Numbas version: exam_results_page_options {"name": "Josh's copy of Numbas demo: motion on a slope", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"showCorrectAnswer": true, "showPrecisionHint": false, "steps": [{"type": "information", "variableReplacements": [], "prompt": "

There are two forces acting on the mass: gravity and friction.

", "marks": 0, "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}, {"showCorrectAnswer": true, "showPrecisionHint": false, "precisionPartialCredit": 0, "precision": "2", "prompt": "

What is the force due to gravity, in the direction of the slope? Enter your answer in $\\mathrm{N}$, to 2 decimal places.

", "marks": 1, "variableReplacementStrategy": "originalfirst", "scripts": {}, "precisionMessage": "You have not given your answer to the correct precision.", "type": "numberentry", "maxValue": "mass*a_gravity", "strictPrecision": false, "allowFractions": false, "precisionType": "dp", "correctAnswerFraction": false, "variableReplacements": [], "minValue": "mass*a_gravity"}, {"showCorrectAnswer": true, "showPrecisionHint": false, "precisionPartialCredit": 0, "precision": "2", "prompt": "

What is the force due to friction, in the direction of the slope? Enter your answer in $\\mathrm{N}$, to 2 decimal places.

", "marks": 1, "variableReplacementStrategy": "originalfirst", "scripts": {}, "precisionMessage": "

You have not given your answer to the correct precision.

", "type": "numberentry", "maxValue": "mass*a_friction", "strictPrecision": false, "allowFractions": false, "precisionType": "dp", "correctAnswerFraction": false, "variableReplacements": [], "minValue": "mass*a_friction"}], "precisionPartialCredit": 0, "precision": "2", "prompt": "

What is the total force acting on the mass, along the slope? Enter your answer in $\\mathrm{N}$, to 2 decimal places.

", "marks": "3", "variableReplacementStrategy": "originalfirst", "scripts": {}, "precisionMessage": "

You have not given your answer to the correct precision.

", "type": "numberentry", "maxValue": "mass*acceleration", "strictPrecision": false, "allowFractions": false, "precisionType": "dp", "correctAnswerFraction": false, "variableReplacements": [], "minValue": "mass*acceleration", "stepsPenalty": 0}, {"showCorrectAnswer": true, "choices": ["

It moves down the slope.

", "

It moves up the slope.

", "

It remains stationary.

"], "prompt": "

What happens to the mass next?

", "variableReplacements": [], "displayType": "radiogroup", "marks": 0, "shuffleChoices": false, "scripts": {}, "type": "1_n_2", "matrix": "if(acceleration=0,[0,1,0],[1,0,0])", "displayColumns": 0, "variableReplacementStrategy": "originalfirst", "minMarks": 0, "maxMarks": 0}, {"showCorrectAnswer": true, "showPrecisionHint": false, "precisionPartialCredit": 0, "precision": "2", "prompt": "

At what time does the mass reach the ground? Enter your answer in seconds to 2 decimal places, or $0$ if the mass never reaches the ground.

", "marks": 1, "variableReplacementStrategy": "originalfirst", "scripts": {}, "precisionMessage": "

You have not given your answer to the correct precision.

", "type": "numberentry", "maxValue": "t_ground", "strictPrecision": false, "allowFractions": false, "precisionType": "dp", "correctAnswerFraction": false, "variableReplacements": [], "minValue": "t_ground"}], "variable_groups": [{"name": "Setup", "variables": ["height", "c_friction", "mass", "incline", "distance"]}, {"name": "Acceleration", "variables": ["slope", "gravity", "a_gravity", "a_friction", "acceleration_naive", "acceleration"]}, {"name": "Answer", "variables": ["t_ground"]}], "advice": "

Either construct the intersection of two circles centred at $\\mathbf{a}$ and $\\mathbf{b}$, or use the Regular Polygon tool.

\n

(I could embed another GeoGebra applet here)

", "tags": [], "metadata": {"description": "

Given the gradient of a slope and the coefficient of friction for a mass resting on it, use the equations of motion to calculate how it moves.

\n

Includes a GeoGebra rendering of the model.

", "licence": "Creative Commons Attribution 4.0 International"}, "extensions": ["geogebra"], "type": "question", "preamble": {"js": "", "css": ""}, "variables": {"a_friction": {"description": "", "definition": "let(f,dot(matrix([[0,1],[-1,0]])*slope,gravity)*c_friction,\n min(f,-a_gravity)\n)", "group": "Acceleration", "name": "a_friction", "templateType": "anything"}, "acceleration_naive": {"description": "", "definition": "a_gravity+a_friction", "group": "Acceleration", "name": "acceleration_naive", "templateType": "anything"}, "a_gravity": {"description": "", "definition": "dot(gravity,slope)", "group": "Acceleration", "name": "a_gravity", "templateType": "anything"}, "c_friction": {"description": "", "definition": "random(0.01..0.5#0.01)", "group": "Setup", "name": "c_friction", "templateType": "anything"}, "mass": {"description": "", "definition": "random(5..35#5)", "group": "Setup", "name": "mass", "templateType": "anything"}, "incline": {"description": "", "definition": "precround(degrees(arctan(height/50)),1)", "group": "Setup", "name": "incline", "templateType": "anything"}, "gravity": {"description": "", "definition": "vector(0,-9.8)", "group": "Acceleration", "name": "gravity", "templateType": "anything"}, "distance": {"description": "", "definition": "45", "group": "Setup", "name": "distance", "templateType": "anything"}, "acceleration": {"description": "", "definition": "if(acceleration_naive<0,acceleration_naive,0)", "group": "Acceleration", "name": "acceleration", "templateType": "anything"}, "t_ground": {"description": "", "definition": "if(acceleration=0,0,sqrt(-2*distance/acceleration))", "group": "Answer", "name": "t_ground", "templateType": "anything"}, "slope": {"description": "", "definition": "vector(cos(radians(incline)),sin(radians(incline)))", "group": "Acceleration", "name": "slope", "templateType": "anything"}, "height": {"description": "", "definition": "random(10..40)", "group": "Setup", "name": "height", "templateType": "anything"}}, "statement": "

In this question, a GeoGebra applet shows a diagram of the given mathematical model. The student can see how the system behaves over time, to compare against their intuition and calculations.

\n

A mass of $\\var{mass}\\,\\mathrm{kg}$ is resting on a plane inclined at $\\var{incline}^{\\circ}$ to the horizontal. The distance along the plane from the ground to the mass is $\\var{distance}\\mathrm{m}$.

\n

A gravitational force of $9.8\\,\\mathrm{N/kg}$ is acting on the mass, and the coefficient of friction between the plane and the mass is $\\mu = \\var{c_friction}$.

\n

{geogebra_applet('xn3p5x73',[[\"height\",height],[\"c_\\{friction\\}\",c_friction],[\"mass\",mass]],[])}

", "functions": {}, "ungrouped_variables": [], "name": "Josh's copy of Numbas demo: motion on a slope", "rulesets": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Josh Lim", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2990/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Josh Lim", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2990/"}]}