Intervals

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

The interval element is used to represent intervals of real numbers. Here is an example of a closed interval:

[0, 1]

<interval> 
  <cn>0</cn>
  <cn>1</cn>
</interval>

The interval element takes an attribute called closure, which specifies whether the interval is open or closed at each end. This attribute can take values that correspond to the four types of intervals: open, closed, open-closed, and closed-open. The default value is closed. Here is an example of an interval where the closure is specified explicitly:

[0, ∞)

<interval closure="closed-open"> 
  <cn>0</cn>
  <infinity/>
</interval>

One common use of the interval element is with the int element to specify the limits of a definite integral. Here is an example:

Intervals: equation

<apply>
  <int/>
  <bvar><ci>x</ci></bvar>
  <interval>
    <cn>0</cn>
    <pi/>
  </interval>
  <apply>
    <sin/>
    <ci>x</ci>
  </apply>
</apply>

   

<< 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