<?xml version="1.0" encoding="utf-8"?>

<!-- It seems the below code is required to display greek chars like &mu; , &nbsp; etc. -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
      <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
   ]>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<title>MathToWeb (MathML example)</title>
	<link rel="stylesheet" href="./../../css/mathtoweb_web.css" type="text/css" />
	<link rel="shortcut icon" href="./images/mathtoweb16x16.ico" />
</head>

<body>

<p class="Small">
MathML generated by <a href="http://www.mathtoweb.com">MathToWeb</a><br/>
A MathML example displaying the Latex named operator&nbsp;&nbsp;\cos.
</p>

<p>
<!-- (your Latex) $\cos^2 t = \frac{ 1 + \cos{2t} }{ 2 }$ -->
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
	<msup>
		<mi>cos</mi>
		<mn>2</mn>
	</msup>
	<mi>t</mi>
	<mo>=</mo>
	<mfrac linethickness="1">
		<mrow>
			<mn>1</mn>
			<mo>+</mo>
			<mi>cos</mi>
			<mrow>
				<mn>2</mn>
				<mi>t</mi>
			</mrow>
		</mrow>
		<mn>2</mn>
	</mfrac>
</mrow>
</math>

<span style="padding-left: 3em;"></span>
<span class="latex"><code>$\cos^2 t = \frac{ 1 + \cos{2t} }{ 2 }$</code></span>
</p>


<p>

<code>
<pre>

&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;mrow&gt;
	&lt;msup&gt;
		&lt;mi&gt;cos&lt;/mi&gt;
		&lt;mn&gt;2&lt;/mn&gt;
	&lt;/msup&gt;
	&lt;mi&gt;t&lt;/mi&gt;
	&lt;mo&gt;=&lt;/mo&gt;
	&lt;mfrac linethickness="1"&gt;
		&lt;mrow&gt;
			&lt;mn&gt;1&lt;/mn&gt;
			&lt;mo&gt;+&lt;/mo&gt;
			&lt;mi&gt;cos&lt;/mi&gt;
			&lt;mrow&gt;
				&lt;mn&gt;2&lt;/mn&gt;
				&lt;mi&gt;t&lt;/mi&gt;
			&lt;/mrow&gt;
		&lt;/mrow&gt;
		&lt;mn&gt;2&lt;/mn&gt;
	&lt;/mfrac&gt;
&lt;/mrow&gt;
&lt;/math&gt;

</pre>
</code>

</p>

</body>
</html>

