Difference between revisions of "Sandbox"

From SolarSailWiki
Share/Save/Bookmark
Jump to: navigation, search
m
m
Line 5: Line 5:
 
include('ASCIIMathPHP.cfg.php');
 
include('ASCIIMathPHP.cfg.php');
 
include('ASCIIMathPHP.class.php');
 
include('ASCIIMathPHP.class.php');
$expr='x^2';
+
$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 =& 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->setExpr($expr); // The ASCIIMath expression you want generate MathML for

Revision as of 10:25, 20 April 2006

<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='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>