资 源 简 介
ASCIIMathML.js (ver 2.0) is a script that converts calculator-style ASCII math notation (and many LaTeX formulas) to Presentation MathML while your Web page loads. Also simple graphics commands are converted to SVG. It works with HTML and XHTML files in Firefox/Mozilla browsers, as well as in Internet Explorer 6/7 with MathPlayer+Adobe SVGview. For example, the solutions for the equation a x^2 + b x + c=0 are expressed in the HTML file as (-b +- sqrt(b^2 - 4a c))/(2a), and display as nicely formatted MathML. Typing agraph plot(sin(x)) endagraph shows a graph of the sime function. The script can be easily used in wikis and blogs and course management systems like Moodle. An auto-math-recognize mode is available, MathML text labels can be included on SVG graphs, and a scientific calculator with MathML preview is included.