Difference between revisions of "Sandbox"

From SolarSailWiki
Share/Save/Bookmark
Jump to: navigation, search
m
m
Line 1: Line 1:
<php>
+
<amath>int_-1^1 sqrt(1-x^2)dx = pi/2</amath>
//echo '<script src="../Wikka/3rdparty/plugins/jsmath/jsMath.js" type="text/javascript"></script>';
+
//echo '<div class="math"> \sum_{i=1}^{\nu} i = {n(n+1)\over 2} </div>';
+
//echo '<script type="text/javascript">jsMath.Process()</script>';
+
include('ASCIIMathPHP.cfg.php');
+
include('ASCIIMathPHP.class.php');
+
$expr='int_-1^1 sqrt(1-x^2)dx = pi/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>
+

Revision as of 14:37, 20 April 2006

<amath>int_-1^1 sqrt(1-x^2)dx = pi/2</amath>