Skip to content

Vectors

Vector input fields can be created using the vector input type in the input element.

A vector consists of either numbers or expressions. It is not allwed to mix these two input types in one vector.

Example

<p>
    Enter the first standard base vector of the space <m>\mathbb{R}^3</m>:
</p>
<p>
    Answer: <input>
        <vector>
            <number>1</number>
            <number>0</number>
            <number>0</number>
        </vector>
    </input>
</p>

Attributes

The vector element supports the following attributes:

Attribute Type Default Description
credits xs:nonNegativeInteger 1 Number of credit points the user gets awarded for this input value. If this input value is part of another input value (such as a vector or a set), then the credits of the child input values are interpreted as relative weights. That means the top level input value has the absolute credits as specified in its credits attribute and each child input value contributes to this number its credits attribute value divided by the sum of all credits attribute values of all children.
defaultsize xs:positiveInteger | Auto - Initial number of components in this vector that are already there when the user loads the page. When this attribute is set to auto, the default size is the size of the first vector written as solution in this input value element.
maxsize xs:positiveInteger | Unbounded - Maximum number of components in this vector or the special value "unbounded", which means that there is no upper bound on the size of the vector.
minsize xs:positiveInteger - Minimum number of components in this vector.
model xs:Name - Name of the model to use for this input value. If this attribute is not set, the input model associated to the input field containing this input value is used.
type VectorType - Type of the vector (column vector or row vector).