Vectors and matrices

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

The vector element is used to represent vectors. A vector from an n-dimensional vector space is represented by a vector element that contains n child elements, each of which represents one scalar component of the vector. For example, a three-dimensional vector, (1, 0, 2), can be represented as shown below:

<vector>
  <cn>1</cn>
  <cn>0</cn>
  <cn>2</cn>
</vector>

The matrix element is used to represent matrices. It contains zero or more matrixrow elements, each of which represents a single row of the matrix. Every matrixrow element, in turn, has zero or more child elements, each of which must be a number, symbol, or algebraic expression. For example, the 3 x 3 identity matrix can be represented as shown below:

Matrix example

<matrix>
  <matrixrow>
    <cn>1</cn><cn>0</cn><cn>0</cn>
  </matrixrow>  
  <matrixrow>
    <cn>0</cn><cn>1</cn><cn>0</cn>
  </matrixrow>  
  <matrixrow>
    <cn>0</cn><cn>0</cn><cn>1</cn>
  </matrixrow>
</matrix>

   

<< back next >>

 

 

 

Tipp der data2type-Redaktion:
Zum Thema MathML bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an:

 

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