sample-mml.html 1.2 KB

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