sample-mml.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>MathJax MathML Test Page</title>
  5. <!-- Copyright (c) 2010-2015 The MathJax Consortium -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8. <script type="text/javascript" src="../MathJax.js?config=MML_HTMLorMML-full"></script>
  9. </head>
  10. <body>
  11. <p>
  12. When
  13. <math xmlns="http://www.w3.org/1998/Math/MathML">
  14. <mi>a</mi><mo>&#x2260;</mo><mn>0</mn>
  15. </math>,
  16. there are two solutions to
  17. <math xmlns="http://www.w3.org/1998/Math/MathML">
  18. <mi>a</mi><msup><mi>x</mi><mn>2</mn></msup>
  19. <mo>+</mo> <mi>b</mi><mi>x</mi>
  20. <mo>+</mo> <mi>c</mi> <mo>=</mo> <mn>0</mn>
  21. </math>
  22. and they are
  23. <math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  24. <mi>x</mi> <mo>=</mo>
  25. <mrow>
  26. <mfrac>
  27. <mrow>
  28. <mo>&#x2212;</mo>
  29. <mi>b</mi>
  30. <mo>&#x00B1;</mo>
  31. <msqrt>
  32. <msup><mi>b</mi><mn>2</mn></msup>
  33. <mo>&#x2212;</mo>
  34. <mn>4</mn><mi>a</mi><mi>c</mi>
  35. </msqrt>
  36. </mrow>
  37. <mrow> <mn>2</mn><mi>a</mi> </mrow>
  38. </mfrac>
  39. </mrow>
  40. <mtext>.</mtext>
  41. </math>
  42. </p>
  43. </body>
  44. </html>