XML technologies / MathML / Content markup / Constructor elements / Conditions

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

The condition element is used to encode expressions that make use of the "such that" construct used in mathematical statements. Here is an example:

Conditions: equation 1 x

<apply>
  <exists/>
  <bvar><ci>x</ci></bvar>
  <condition>
    <apply>
      <eq/>
      <apply>
        <power/>
        <ci>x</ci>
        <cn>2</cn>
      </apply>
      <apply>
        <minus/>
        <cn>1</cn>
      </apply>
    </apply>
  </condition>
</apply>

A condition element has the following properties:

One common use of the condition element is to specify the range of integration in conjunction with an int element, as seen in the following example:

Conditions: equation 2

<apply>
  <int/>
  <bvar>
    <ci>x</ci>
  </bvar>
  <condition>
    <apply>
      <in/>
      <ci> x </ci>
      <ci type="set">D</ci>
    </apply>
  </condition>
  <apply>
    <ci type="fn">f</ci>
    <ci>x</ci>
  </apply>
</apply>

You can use the condition element to define the elements of a list or set as well. You do so by specifying a condition that the elements must satisfy. Two examples of this are given under Sets and lists.

   

 

 

 

 

back to top