// Numbas version: finer_feedback_settings {"name": "Approximate sqrt(n) to a lot of decimal places", "extensions": ["eukleides", "random_person", "quantities"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Approximate sqrt(n) to a lot of decimal places", "tags": [], "metadata": {"description": "
The student is asked to enter an approximation to $\\sqrt{n}$, where $n$ is not a square number, to 20 decimal places.
This question is a demonstration of the high precision arithmetic in Numbas v4.
The square root of n.
", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "dec(random(2..10 except [4,9]))", "description": "The number to take the square root of
", "templateType": "anything"}, "dp": {"name": "dp", "group": "Ungrouped variables", "definition": "20", "description": "The number of decimal places the student must compute.
", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "root", "dp"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "Approximate $\\sqrt{\\var{n}}$ to {dp} decimal places.
", "minValue": "root", "maxValue": "root", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "dp", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}