W3C home > Mailing lists > Public > www-math@w3.org > July 2003

Representing a set of value pairs?

From: Roger L. Costello <costello@mitre.org>
Date: Sat, 19 Jul 2003 12:39:30 -0400
Message-ID: <3F197442.BB086208@mitre.org>
To: www-math@w3.org, "Costello,Roger L." <costello@mitre.org>

Hi Folks,

Suppose that I want to represent the set of all inch/centimeter pairs,
e.g,

   {i, c | c = i * 2.54}

Examples in this set include:

   (1.0, 2.54), (2.0, 5.08), etc

Is this the correct way to represent this set in MathML:

<math>
    <declare type="set">
        <ci>S<ci>
        <set>
            <bvar><ci>i</ci></bvar>
            <bvar><ci>c</ci></bvar>
            <condition>
                <apply>
                    <eq/>
                    <ci>c</ci>
                    <apply>
                        <times/>
                        <ci>i</ci>
                        <cn>2.54</cn>
                    </apply>
                </apply>
            </condition>
        </set>
    </declare>
</math>

I think that this is correct.  My only hesitation is that perhaps I need
parentheses around (i,c)?  e.g., 

      {(i, c) | c = i * 2.54}

And likewise in the MathML representation place parentheses?  /Roger
Received on Saturday, 19 July 2003 16:12:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:55 GMT