A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Equations in HTML: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 32: Line 32:
   <mo>&InvisibleTimes;</mo>
   <mo>&InvisibleTimes;</mo>
   <mi>a</mi>
   <mi>a</mi>
  </mrow>
</mfrac>
</math>
</pre>
<pre>
<math>
x =
<mfrac>
  <mrow>
  <mrow> - b </mrow>
  &PlusMinus;
  <msqrt>
    <msup> b 2 </msup>
    -
    <mrow> 4 &InvisibleTimes; a &InvisibleTimes; c </mrow>
  </msqrt>
  </mrow>
  <mrow>
  2 &InvisibleTimes; a
   </mrow>
   </mrow>
  </mfrac>
  </mfrac>

Revision as of 00:20, 30 March 2008

Here are some ideas for how to include equations in HTML documents.

Candidates

<math xmlns="http://www.w3.org/1998/Math/MathML">
 <mi>x</mi>
 <mo>=</mo>
 <mfrac>
  <mrow>
   <mrow>
    <mo>-</mo>
    <mi>b</mi>
   </mrow>
   <mo>±</mo>
   <msqrt>
    <msup>
     <mi>b</mi>
     <mn>2</mn>
    </msup>
    <mo>-</mo>
    <mrow>
     <mn>4</mn>
     <mo>⁢</mo>
     <mi>a</mi>
     <mo>⁢</mo>
     <mi>c</mi>
    </mrow>
   </msqrt>
  </mrow>
  <mrow>
   <mn>2</mn>
   <mo>⁢</mo>
   <mi>a</mi>
  </mrow>
 </mfrac>
</math>
<math>
 x =
 <mfrac>
  <mrow>
   <mrow> - b </mrow>
   ±
   <msqrt>
    <msup> b 2 </msup>
    -
    <mrow> 4 ⁢ a ⁢ c </mrow>
   </msqrt>
  </mrow>
  <mrow>
   2 ⁢ a
  </mrow>
 </mfrac>
</math>
<math>x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}</math>

Rejected

None yet.