Documentation

WIRIS Comparison with student answer

Comparison for student answer for General and Quantity input

Field Description WIRIS documentation
Tolerance The Tolerance number is used to compare the student answer and the Correct answer.

The tolerance options only apply to decimal numbers! For instance, if the question's answer is 10, we may set 10.0 as the correct answer so that the validation system takes into account the defined tolerance.
Literally equal This removes all mathematical interpretations from the comparison. The student's answer is only correct if it matches the correct answer exactly. For example, if the correct answer is 4, but the student writes 4.0, it will not be counted. This criterion is rarely recommended.
Mathematically equal This is the default comparison. It will detect if what the student has written is mathematically equal to the correct answer. For example, we don't need to worry if the student writes a+b or b+a. More details
Equivalent equations This comparison is very similar to the mathematically equal option. Still, it is for the particular case where the answer is an equation (e.g. the student could write y=2x-5 , or 2.5=x-y2 , or any equivalent form). More details
Any answer Anything that the student answers will be counted as correct. This is useful in some cases. More details
Compare as sets Order and repetition don't matter in lists: When checked, order and repetition are ignored from lists. So, if the correct answer is the set {2,-2} (for example of task to find roots of y=x2-4), then {2,-2,2,2} (for example) would be accepted.

Comparison for student answer for Text input

Property Description Correct examples Wrong examples WIRIS documentation
Literally equal Checks whether the response is literally equal to correct answer 2+2 when correct answer is 2+2 2+2.0 when correct answer is 2+2
Any answer Dummy assertion that always returns true, even if the answer is not sintactically valid. 2+2 when correct answer is 5 More details
Match case For textual inpunts, whether to take into account character case or not. If false, the comparison will be case insensitive. "answer" when correct answer is "answer" "answer" when correct answer is "Answer" More details
Match spaces (Deprecated) For textual inpunts, whether to take blank spaces into account. If true, the spaces in the answer must exactly match the spaces in the correct answer. If false, leading and trailing spaces are ignored, as well as multiple spaces.

Related topics

  1. Allowed input
  2. General input options
  3. Quantity input options
  4. Additional properties