// Numbas version: finer_feedback_settings {"name": "CSS to style an augmented matrix input", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "CSS to style an augmented matrix input", "tags": [], "metadata": {"description": "

The CSS preamble adds a vertical line down the input for part b, to separate the two parts of the matrix.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Here is a table showing the proportions of different ingredients used for three different recipes:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
FlourWaterEggs
Megabread{m[0][0]}{m[0][1]}{m[0][2]}
Super biscuits{m[1][0]}{m[1][1]}{m[1][2]}
Tasty pastry{m[2][0]}{m[2][1]}{m[2][2]}
", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"m": {"name": "m", "group": "Ungrouped variables", "definition": "matrix(repeat(repeat(random(1..5),3),3))", "description": "", "templateType": "anything", "can_override": false}, "augmented_matrix": {"name": "augmented_matrix", "group": "Ungrouped variables", "definition": "augment(m, id(3))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["m", "augmented_matrix"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": "/* Add the vertical line in the augmented matrix input between the matrix M and the identity matrix */\n.part[data-part-path=\"p1\"] .matrix-input td:nth-of-type(4) {\n border-left: thin solid currentColor;\n}"}, "parts": [{"type": "matrix", "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": "

Write this as a matrix $M$

", "correctAnswer": "m", "correctAnswerFractions": false, "numRows": "3", "numColumns": "3", "allowResize": false, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "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": "

Augment the matrix $M$ with the identity matrix.

", "correctAnswer": "augmented_matrix", "correctAnswerFractions": false, "numRows": "3", "numColumns": "6", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": "4", "maxColumns": 0, "minRows": "3", "maxRows": 0, "prefilledCells": ""}], "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/"}]}