Skip to content

Matrices

Input fields for matrices can be created using the input type matrix in the input element.

The cells of a matrix must consist either completely of numbers or completely of expressions. It is forbidden to mix these two input types in one matrix.

Example

<p>
    Enter the identity matrix of size <m>2 \times 2</m>:
</p>
<p>
    Answer: <input>
        <matrix>
            <matrixrow>
                <number>1</number>
                <number>0</number>
            </matrixrow>
            <matrixrow>
                <number>0</number>
                <number>1</number>
            </matrixrow>
        </matrix>
    </input>
</p>