Sandbox
From SolarSailWiki
<php> //echo '<script src="../Wikka/3rdparty/plugins/jsmath/jsMath.js" type="text/javascript"></script>';
//echo ' \sum_{i=1}^{\nu} i = {n(n+1)\over 2}
';
//echo '<script type="text/javascript">jsMath.Process()</script>'; include('ASCIIMathPHP.cfg.php'); include('ASCIIMathPHP.class.php'); $expr='x^2'; $ascii_math =& new ASCIIMathPHP($symbol_arr); // The $symbol array is defined in ASCIIMathPHP.class.php $ascii_math->setExpr($expr); // The ASCIIMath expression you want generate MathML for $ascii_math->genMathML(); print($ascii_math->getMathML()); </php>