// Numbas version: finer_feedback_settings {"name": "John's copy of Resolve force into $x$ and $y$ components", "extensions": [], "custom_part_types": [], "resources": [["question-resources/force_component_image_2.png", "/srv/numbas/media/question-resources/force_component_image_2.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["force", "theta", "angle", "yangle"], "name": "John's copy of Resolve force into $x$ and $y$ components", "tags": [], "advice": "

a)

\n

We need to find the angle $\\theta_x$ of $F$ relative to the $x$-axis and then use $F \\times cos\\theta_x$.

\n

We consider the angle between the positive $x$-axis and $F$, i.e. $\\theta_x = 90 + \\var{theta}$.

\n

\\begin{align}
\\text{component in the } x \\text{-direction} & = F \\cos\\theta_x \\\\
& = \\var{force} \\times \\cos \\var{angle} \\\\
& = \\var{precround(force*cos(radians(angle)),3)}
\\end{align}

\n

b)

\n

The positive $y$-direction is vertically upwards and we need the angle relative to the positive $y$-direction therefore $\\theta_y = 180 - \\var{theta}$.

\n

\\begin{align}
\\text{component in the } y \\text{-direction} & = F \\cos\\theta_y \\\\
& = \\var{force} \\times \\cos \\var{yangle} \\\\
& = \\var{precround(force*cos(radians(yangle)),3)}
\\end{align}

\n

Notice that both these answers are negative as the force acts in the opposite direction to the positive. You could also answer these by resolving in the negative $x$ or $y$ direction and changing the sign of your solution. For example in part b) you could use $\\theta_y = \\var{theta}$ which gives $F \\cos \\theta_y = \\var{precround(-force*cos(radians(yangle)),3)}$ and then change the sign.

", "rulesets": {}, "parts": [{"precisionType": "dp", "prompt": "

Find the component of the force in the $x$-direction in Newtons.

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

Find the component of the force in the $y$-direction in Newtons.

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "3", "maxValue": "force*cos(radians(yangle))", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "minValue": "force*cos(radians(yangle))", "type": "numberentry", "showPrecisionHint": false}], "extensions": [], "statement": "

\n

In the above diagram, $F = \\var{force} \\, \\mathrm{N}$ and $\\theta = \\var{theta}^{\\circ}$. 

\n

Give your answers to the following questions to 3 decimal places.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"yangle": {"definition": "180-theta", "templateType": "anything", "group": "Ungrouped variables", "name": "yangle", "description": ""}, "theta": {"definition": "random(2..89#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "theta", "description": ""}, "force": {"definition": "random(3..20#0.5)", "templateType": "randrange", "group": "Ungrouped variables", "name": "force", "description": ""}, "angle": {"definition": "90 + theta", "templateType": "anything", "group": "Ungrouped variables", "name": "angle", "description": ""}}, "metadata": {"description": "

Find the $x$ and $y$ components of a force which is applied at an angle to a particle. Resolve using $F \\cos \\theta$. The force is applied in the negative $x$ and negative $y$ direction.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "John Bridges", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/913/"}]}]}], "contributors": [{"name": "John Bridges", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/913/"}]}