- From: Wendell P <wendellp@operamail.com>
- Date: Tue, 24 Jan 2012 15:54:54 -0800
- To: www-math@w3.org
I used the MathType, Math+Magic, and Formulator equation editors to
render this as MathML:
$$ \hat G^{(T)} = \frac{1}{T} \sum_{t=m+1}^{T} \pi^t $$
http://img36.imageshack.us/img36/8418/codecogseqn.png
Below is the slightly cleaned-up code from each. They seem to represent
quite different ideas of how things should be done. The different
versions render the same in most environments I have tried, so I would
lean toward using the simplest markup, like Formulator. In what
situations would I want to use heavier markup like Math+Magic?
--------------------------------
FORMULATOR
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
<mrow>
<msup>
<mover>
<mi>G</mi>
<mo stretchy='true'>ˆ</mo>
</mover>
<mrow>
<mo stretchy='false'>(</mo>
<mi>T</mi>
<mo stretchy='false'>)</mo>
</mrow>
</msup>
<mo>=</mo>
<mfrac>
<mn>1</mn>
<mi>T</mi>
</mfrac>
<mrow>
<munderover>
<mo>∑</mo>
<mrow>
<mi>t</mi>
<mo>=</mo>
<mi>m</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mi>T</mi>
</munderover>
<msup>
<mi>π</mi>
<mi>t</mi>
</msup>
</mrow>
</mrow>
</math>
--------------------------------
MATHTYPE
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mover accent='true'>
<mi>G</mi>
<mo>^</mo>
</mover>
<mrow>
<mo stretchy='false'>(</mo>
<mi>T</mi>
<mo stretchy='false'>)</mo>
</mrow>
</msup>
<mo>=</mo>
<mfrac>
<mn>1</mn>
<mi>T</mi>
</mfrac>
<mstyle displaystyle='true'>
<munderover>
<mo>∑</mo>
<mrow>
<mi>t</mi>
<mo>=</mo>
<mi>m</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mi>T</mi>
</munderover>
<mrow>
<msup>
<mi>π</mi>
<mi>t</mi>
</msup>
</mrow>
</mstyle>
</mrow>
</math>
--------------------------------
MATH+MAGIC
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<semantics>
<mstyle mathcolor="#000000" mathsize="12.0pt">
<msup>
<mover>
<mi mathvariant="italic">G</mi>
<mo accent="true">^</mo>
</mover>
<mrow>
<mi mathsize="50.0%">(</mi>
<mi mathsize="50.0%" mathvariant="italic">T</mi>
<mi mathsize="50.0%">)</mi>
</mrow>
</msup>
<mo>=</mo>
<mfrac>
<mn>1</mn>
<mi mathvariant="italic">T</mi>
</mfrac>
<mrow>
<munderover>
<mo>∑</mo>
<mrow>
<mi mathsize="50.0%" mathvariant="italic">t</mi>
<mo mathsize="50.0%">=</mo>
<mi mathsize="50.0%" mathvariant="italic">m</mi>
<mo mathsize="50.0%">+</mo>
<mn mathsize="50.0%">1</mn>
</mrow>
<mi mathsize="50.0%" mathvariant="italic">T</mi>
</munderover>
<msup>
<mo mathvariant="italic">π</mo>
<mi mathsize="50.0%" mathvariant="italic">t</mi>
</msup>
</mrow>
</mstyle>
</semantics>
</math>
--
http://www.fastmail.fm - Email service worth paying for. Try it for free
Received on Tuesday, 24 January 2012 23:55:20 UTC