asciimathsample.html 860 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <html xmlns:mml="http://www.w3.org/1998/Math/MathML">
  2. <head>
  3. <script type="text/javascript" src="ASCIIMathML.js"></script>
  4. <title>ASCIIMathML sample page</title>
  5. </head>
  6. <body>
  7. <h2>ASCIIMathML.js sample page</h2>
  8. <p>
  9. Use auto-math-recognize mode (amath here x^2 and text is
  10. mixed endamath) or surround ASCIIMath formulas
  11. with left-quotes:
  12. `sum_(i=1)^n i=(n(n+1))/2` or LaTeX formulas with \$-signs
  13. $\int_0^{\pi/2} \sin x\,dx=1$.
  14. </p>
  15. <p>
  16. And here is a simple graph:
  17. agraph plot(sin(x)) endagraph
  18. followed by a more elaborate graph (try double-clicking it, also
  19. while holding down shift or alt)
  20. agraph
  21. width=300; height=200; xmin=-5; xmax=5; xscl=1;
  22. plot((x-2)*(x-1)*x*(x+1)*(x+2)/2,-2.5,2.5);
  23. endagraph
  24. </p>
  25. <p>
  26. Note: this page uses a relative link to ASCIIMathML.js,
  27. so the script should be in the same folder as this sample file.
  28. </p>
  29. </body>
  30. </html>