Answer Checker Options (MathObjects): Difference between revisions
Jump to navigation
Jump to search
(Create page from MathObjectAnswerCheckers.pod) |
(Move options to a table (have to apply lots of CSS by hand)) |
||
Line 9: | Line 9: | ||
There are a number of options common to all the checkers: | There are a number of options common to all the checkers: | ||
{| class="wikitable" | |||
: Show/don't show messages about student answers not being of the right type. | ! Option !! Description !! style="padding:5px" | Default | ||
|- style="vertical-align: top" | |||
| style="white-space: nowrap; padding: 5px" | <code>showTypeWarnings => 1</code> or <code>0</code> | |||
: Show/don't show messages produced by trying to compare the professor and student values for equality, e.g., conversion errors between types. | | style="padding: 5px" | Show/don't show messages about student answers not being of the right type. | ||
| style="text-align:center" | 1 | |||
|- style="vertical-align: top" | |||
: Show/don't show type mismatch errors produced by strings (so that <code>NONE</code> will not cause a type mismatch in a checker looking for a list of numbers, for example). | | style="white-space: nowrap; padding: 5px" | <code>showEqualErrors => 1</code> or <code>0</code> | ||
| style="padding: 5px" | Show/don't show messages produced by trying to compare the professor and student values for equality, e.g., conversion errors between types. | |||
| style="text-align:center" | 1 | |||
: Controls whether or not students answers are allowed to include overlapping, redundant, or uncombined intervals. | |- style="vertical-align: top" | ||
| style="white-space: nowrap; padding: 5px" | <code>ignoreStrings => 1</code> or <code>0</code> | |||
| style="padding: 5px" | Show/don't show type mismatch errors produced by strings (so that <code>NONE</code> will not cause a type mismatch in a checker looking for a list of numbers, for example). | |||
: Do/don't show warnings for unreduced unions. This includes warnings about overlapping sets, uncombined intervals (like <code>(0,1] U [1,infinity]</code>), and repeated elements in sets. | | style="text-align:center" | 1 | ||
|- style="vertical-align: top" | |||
| style="white-space: nowrap; padding: 5px" | <code>studentsMustReduceUnions => 1</code> or <code>0</code> | |||
| style="padding: 5px" | Controls whether or not students answers are allowed to include overlapping, redundant, or uncombined intervals. | |||
| style="text-align:center" | 1 | |||
|- style="vertical-align: top" | |||
| style="white-space: nowrap; padding: 5px" | <code>showUnionReduceWarnings => 1</code> or <code>0</code> | |||
| style="padding: 5px" | Do/don't show warnings for unreduced unions. This includes warnings about overlapping sets, uncombined intervals (like <code>(0,1] U [1,infinity]</code>), and repeated elements in sets. | |||
| style="text-align:center" | 1 | |||
|} | |||
=== Options for Individual MathObject Classes === | === Options for Individual MathObject Classes === |
Revision as of 20:27, 3 August 2012
The action of the answer checkers can be modified by passing options to the cmp()
method. For example:
ANS(Real(pi)->cmp(showTypeWarnings => 0));
will prevent the answer checker from reporting errors due to the student entering the wrong type of answer (say a vector rather than a number).
Options common to all answer checkers
There are a number of options common to all the checkers:
Option | Description | Default |
---|---|---|
showTypeWarnings => 1 or 0
|
Show/don't show messages about student answers not being of the right type. | 1 |
showEqualErrors => 1 or 0
|
Show/don't show messages produced by trying to compare the professor and student values for equality, e.g., conversion errors between types. | 1 |
ignoreStrings => 1 or 0
|
Show/don't show type mismatch errors produced by strings (so that NONE will not cause a type mismatch in a checker looking for a list of numbers, for example).
|
1 |
studentsMustReduceUnions => 1 or 0
|
Controls whether or not students answers are allowed to include overlapping, redundant, or uncombined intervals. | 1 |
showUnionReduceWarnings => 1 or 0
|
Do/don't show warnings for unreduced unions. This includes warnings about overlapping sets, uncombined intervals (like (0,1] U [1,infinity] ), and repeated elements in sets.
|
1 |
Options for Individual MathObject Classes
In addition to these, the individual MathObject types have their own options. These are documented in the individual pages for the various MathObject classes, linked below:
- Real class
- Infinity class
- Complex class
- Point class
- Vector class
- Matrix class
- List class
- Interval class
- Set clas
- Union class
- String class
- Formula class