(Excerpt from "The MathML Handbook" by Pavi Sandhu)
The following content elements represent various operators or functions used in linear algebra: determinant, transpose, selector, vectorproduct, scalarproduct, and outerproduct.
The determinant and transpose elements represent the determinant and transpose of a matrix, respectively. The matrix itself is represented using the matrix and matrixrow elements, as discussed under Vectors and matrices.
For example, given a matrix:
the equations that describe the transpose and determinant of A are given below:
<apply> <eq/> <apply> <transpose/> <ci type="matrix">A</ci> </apply> <matrix> <matrixrow><cn>1</cn><cn>3</cn></matrixrow> <matrixrow><cn>2</cn><cn>4</cn></matrixrow> </matrix> </apply>
<apply> <eq/> <apply> <determinant/> <ci type="matrix">A</ci> </apply> <cn>2</cn> </apply>
The selector element is used to select a specific part of a list, vector, or matrix. This element can take one, two, or three arguments. The first argument identifies the object whose element is being selected. The remaining arguments specify the index number of the item in that object.
For matrices, the second argument specifies the row and the third argument specifies the column. For example, the element in the first row and second column of a matrix A is represented as shown below:
<apply> <selector/> <ci type="matrix">A</ci> <cn>1</cn> <cn>2</cn> </apply>
If the selector element is given with three arguments and the first argument identifies a vector or list, the third argument is ignored.
The vectorproduct, scalarproduct, and outerproduct elements represent the vector product, the scalar product, and the outerproduct of vectors, respectively. Here is an example showing the scalar product of two vectors:
<apply> <eq/> <apply> <scalarproduct/> <ci type="vector"> A </ci> <ci type="vector"> B </ci> </apply> <apply> <times/> <ci>a</ci> <ci>b</ci> <apply> <cos/> <ci>θ</ci> </apply> </apply> </apply>
Copyright © CHARLES RIVER MEDIA, INC., Massachusetts (USA) 2003
Printing of the online version is permitted exclusively for private use. Otherwise this chapter from the book "The MathML Handbook" is subject to the same provisions as those applicable for the hardcover edition: The work including all its components is protected by copyright. All rights reserved, including reproduction, translation, microfilming as well as storage and processing in electronic systems.
CHARLES RIVER MEDIA, INC., 20 Downer Avenue, Suite 3, Hingham, Massachusetts 02043, United States of America