WeBWorK Main Forum

Relative Tolerance in Number with Units

Re: Relative Tolerance in Number with Units

by Davide Cervone -
Number of replies: 0
Sorry to have left this unanswered for so long. The holidays slowed me down, I'm afraid.

The context flags depend on which context you are using, but you can get the ones for the current context by using

    warn join('<BR>',lex_sort(Context()->flags->names));
in your problem file after you select the context. There are also some tools in pg/macros/PGinfo.pl for listing the flags and their values, or the entire Context() structure.

As for the cmp() flags, that is harder, since each MathObject class has its own set, and there is no one place where they are all listed, even in the code itself. Many of the most common ones are in the documentation at

so that is the first place to start. As you have found out, the documentation on MathObjects is something that needs improvement.