Skip to content

Scoring: affinespace

Example: The answer is: #$#\left(\begin{array}{c} 2 \\ 0 \\ 0 \end{array}\right) + \left<\left(\begin{array}{c} 1 \\ 0 \\ -1 \end{array}\right)\left(\begin{array}{c} 0 \\ 1 \\ 0 \end{array}\right)\right>#$#

⚠ In general, the examples do not represent meaningful scoring schemes but are intended to document the behavior.

Default Behavior

If no attributes are defined for affinespace, 1 point is awarded for a completely correct input, otherwise 0 points:

Example: Default Behavior
<input>
    <affinespace>
        <vector minsize="3" maxsize="3"><number>2</number><number>0</number><number>0</number></vector>
        <linearspan>
            <vector><number>1</number><number>0</number><number>-1</number></vector>
            <vector><number>0</number><number>1</number><number>0</number></vector>
        </linearspan>
    </affinespace>  
</input>   
You can test the example here:

mode="whole"

In whole evaluation mode, the input is evaluated as a whole. This is the default evaluation mode. The user receives the (maximum) score specified by the credits attribute (default value: 1) for a completely correct input, and the minimum score defined by the mincredits attribute (default value: 0) for an incorrect input.  

Example: whole
<input mode="whole" credits="5" mincredits="-2">
    <affinespace>
        <vector minsize="3" maxsize="3"><number>2</number><number>0</number><number>0</number></vector>
        <linearspan>
            <vector><number>1</number><number>0</number><number>-1</number></vector>
            <vector><number>0</number><number>1</number><number>0</number></vector>
        </linearspan>
    </affinespace>  
</input>  
You can test the example here:

mode="sum X"

In sum evaluation mode, points are awarded exclusively for correct (partial) results. X defines the number of points awarded by default for each correct partial result. If a credit value is specified for the corresponding input element, this number of points is used. The points determined in this way are added to the value of mincredits. If the resulting value exceeds the value of credits, the awarded points are limited to the value of credits.

⚠ For affinespace, both vector and linearspan are evaluated as partial inputs. However, linearspan must be correct for vector to be considered correct.

Example: sum
<input mode="sum 2" credits="5" mincredits="-2">
    <affinespace>
        <vector minsize="3" maxsize="3"><number>2</number><number>0</number><number>0</number></vector>
        <linearspan>
            <vector><number>1</number><number>0</number><number>-1</number></vector>
            <vector><number>0</number><number>1</number><number>0</number></vector>
        </linearspan>
    </affinespace>  
</input> 
You can test the example here:

mode="penalty X"

In penalty evaluation mode, points are deducted for each incorrect (partial) result. X defines the number of points to be deducted for each incorrect partial result. These points are subtracted from the value of credits. If the resulting value is lower than the value of mincredits, the awarded points are limited to the value of mincredits.

⚠ For affinespace, both vector and linearspan are evaluated as partial inputs. However, linearspan must be correct for vector to be considered correct.

Example: penalty
<input mode="penalty 2" credits="5" mincredits="-2">
    <affinespace>
        <vector minsize="3" maxsize="3"><number>2</number><number>0</number><number>0</number></vector>
        <linearspan>
            <vector><number>1</number><number>0</number><number>-1</number></vector>
            <vector><number>0</number><number>1</number><number>0</number></vector>
        </linearspan>
    </affinespace>  
</input> 
You can test the example here: