<< Part 6 - Part 8 >>

Part 7: Interval

Consider the case that the answer to a problem is an interval.
The syntax is similar to the one for sets

The solution is defined by a left boundary ([ for closed and ] for open), two semicolon separated numbers or variables, and a right boundary (] for closed or [ for open)
Here is an example


                \text{Write down the Interval from 1 to 3:}
                \explanation{Test test Test}

                        \text{ A = }
                        \solution{[1;3]} % or ] for open type, the boundaries should be separated by ";" 


There is the optional TeX command \allowIntervalUnionsForInput[<boolean, default: true>] with which you can enable
the option that the student's answer can be given by the union of multiple intervals.

    \text{input.interval: $[1;4) = $}

Furthermore as an author you can give the correct solution as an union of multiple disjoint intervals by seperating them with a comma, an example:


Be aware that this is only possible if the optional command \allowIntervalUnionsForInput is used.

Capture50.PNG (12.3 KB) Michael Heimann, 05/17/2018 11:17 AM

Add picture from clipboard (Maximum size: 500 MB)