Matrix response area¶
This advanced response area allows the user to generate an array of Numeric or Maple response areas (see "Response Areas/Vanilla" for more information). The idea is that the user sets up the parameters to be used for all the response areas to be generated, with only the answer field changing with each generated response area.
For the input syntax, the general idea was to keep matrix response areas as close as possible to their individual Mobius counterparts (i.e. "answer" for Numeric and "mapleAnswer" for Maple).
Minimum Parameters¶
These are same as for their single Mobius counterpart, the way a matrix response is selected is by adding Matrix in front of the usual mode field:
modecan be eitherMatrix MapleorMatrix Numeric
For this response area, the other minimum required parameter is a 2D array of answers relevant to the mode chosen. It is the shape of this array that will determine the shape of the matrix generated.
Matrix Maple¶
mapleAnswermust be a 2D array of strings containing the maple answers for each relevant cell in the matrix
Matrix Numeric¶
answerWARNING: This is different to the vanilla Numeric response area - as units are always disabled in a matrix, this field can be a 2D array of floats. (it doesn't need to be an object containingnumandunits)
Extra Parameters¶
All the extra parameters relevant to the vanilla version of the response area you chose can be added. Visit their relevant documentations for more information. The only difference is that for Matrix Numeric, showUnits will always be set to false.
Example Usage¶
Example Matrix Maple Response Area:
"response": {
"mode": "Matrix Maple",
"mapleAnswer": [
["2*x", "5*x + y"],
["x + y", "-6*y"]
]
}
Example Matrix Numeric Response Area:
"response": {
"grading": "toler_abs",
"err": 0.001,
"mode": "Matrix Numeric",
"answer": [
[
3.2,
4.6
],
[
7.6,
1.0
]
]
}
err and grading were changed. This will be reflected in all the response areas which eventually make up this matrix for the student.
Note: The relevant template for this response area can be found in templates/matrixResponse.html