// Numbas version: exam_results_page_options {"name": "Displaying surd fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "preamble": {"js": "", "css": ""}, "advice": "", "variables": {"f": {"name": "f", "definition": "random(fractions)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "fractions": {"name": "fractions", "definition": "[\n [3,4],\n [1,2],\n [1,1]\n]", "group": "Ungrouped variables", "description": "

Fractions, in the form [numerator, denominator]. They represent the squares of the fractions we want to show.

", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

$\\simplify[sqrtsquare,unitDenominator]{ sqrt({f[0]})/sqrt({f[1]}) }$

\n

$\\left. \\simplify[sqrtsquare]{ sqrt({f[0]})} \\middle/ \\simplify[sqrtsquare]{ sqrt({f[1]}) } \\right.$

", "extensions": [], "tags": [], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "ungrouped_variables": ["fractions", "f"], "metadata": {"licence": "None specified", "description": "Shows how to use the sqrtSquare simplification rule to display a randomly-chosen fraction involving surds on either the top or bottom.
"}, "name": "Displaying surd fractions", "functions": {}, "parts": [], "rulesets": {}}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}