// Numbas version: exam_results_page_options {"name": "Displaying and answering trig ratios", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Displaying and answering trig ratios", "tags": [], "metadata": {"description": "

The student is given a value of $\\cos(\\theta)$ and has to find $\\theta$.

\n

Shows how to use subexpressions to represent randomly-chosen fractions of $\\pi$ and surds, and have them displayed nicely.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "variables": {"angle_value_pairs": {"name": "angle_value_pairs", "group": "Ungrouped variables", "definition": "[\n [\"pi/3\",\"1/2\"],\n [\"pi/4\",\"1/sqrt(2)\"],\n [\"pi/6\",\"sqrt(3)/2\"]\n]", "description": "

Pairs of $(\\theta, \\cos(\\theta))$

", "templateType": "anything"}, "angle_value_pair": {"name": "angle_value_pair", "group": "Ungrouped variables", "definition": "random(angle_value_pairs)", "description": "

An angle-value pair to use.

", "templateType": "anything"}, "angle": {"name": "angle", "group": "Ungrouped variables", "definition": "expression(angle_value_pair[0])", "description": "", "templateType": "anything"}, "value": {"name": "value", "group": "Ungrouped variables", "definition": "expression(angle_value_pair[1])", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["angle_value_pairs", "angle_value_pair", "angle", "value"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\cos(\\theta) = \\var{value}$. What is $\\theta$?

", "answer": "{angle}", "answerSimplification": "fractionnumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}