// Numbas version: finer_feedback_settings {"name": "NCM4 U2 Hookes Law Regression Model", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NCM4 U2 Hookes Law Regression Model", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

A Hooke's Law experiment was performed to determine the spring constant of a spring.  The following data were recorded.

\n

{table}

\n

Use a regression model to determine the spring constant sought.  (N.B. The spring constant is the slope of the model equation.)

", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"k": {"name": "k", "group": "Ungrouped variables", "definition": "random(0.5..5#0.01)", "description": "", "templateType": "anything", "can_override": false}, "pStep": {"name": "pStep", "group": "Ungrouped variables", "definition": "random(0.05..0.5#0.05)", "description": "", "templateType": "anything", "can_override": false}, "numData": {"name": "numData", "group": "Ungrouped variables", "definition": "7", "description": "", "templateType": "anything", "can_override": false}, "xPos": {"name": "xPos", "group": "Ungrouped variables", "definition": "map(\n pStep*(j+1),\n j,\n 0..numData-1\n)", "description": "", "templateType": "anything", "can_override": false}, "force": {"name": "force", "group": "Ungrouped variables", "definition": "map(\n k*xPos[j]/100,\n j,\n 0..numData-1\n)", "description": "", "templateType": "anything", "can_override": false}, "data": {"name": "data", "group": "Ungrouped variables", "definition": "map(\n [xPos[i],\n force[i]],\n i,\n 0..numData-1\n )", "description": "", "templateType": "anything", "can_override": false}, "table": {"name": "table", "group": "Ungrouped variables", "definition": "table(data,['X (cm)','F (N)'])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["k", "pStep", "numData", "xPos", "force", "data", "table"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "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": "

Enter the value if k, the spring constant in N/m (i.e. Newtons per meter).

", "minValue": "k", "maxValue": "k", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": "80", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}