topical media & game development

talk show tell print

sample-math-ml.cfg / cfg



  

load script(s)


  <script src=sample-js-mathml.js></script>
  <script src=sample-js-asciisvg.js></script>
  
<slide color=black id=mathml-1> <p> <script src=sample-js-mathml.js></script> <script src=sample-js-asciisvg.js></script> <center> <table border=1> <tr> <td>

declare svg & draw


<div>
<embed src=d.svg width=300 height=300 script='
setBorder(1)
initPicture(-5,5)
axes(2, 1, "labels", 1)
stroke = "red"
plot("x")
stroke = "black"
plot("1/2 x^2 -  1/3  x - 4")
text([-2.5,-2.5], "svg/ml example")
'>
</div>

in mathml


<div>
amath   1/2 x^2 - 1/3   x - 4 
</div>

next


<td>
<div>
<embed src=d.svg width=300 height=300 script='
setBorder(1)
initPicture(-5,5)
axes(2, 1, "labels", 1)
stroke = "red"
plot("x")
stroke = "black"
plot(" 1/4 x^3 +  1/2 x^2 - 1/3   x - 4 ")
text([-2.5,-2.5], "svg/ml example")
'>
</div>

mathml


<div>
amath   1/7 x^3 +  1/2 x^2 - 1/3   x - 4 
</div>
</tr> </table> </center> <navigate/> </slide> <slide color=black id=mathml-2> <p> <script src=sample-js-mathml.js></script> <script src=sample-js-asciisvg.js></script> <center> <table border=1> <tr> <td>

and next


  <div>
  <embed src=d.svg width=300 height=300 script='
  setBorder(0)
  initPicture(-5,5)
  axes(2, 1, "labels", 1)
  stroke = "red"
  plot(" sin(x) ")
  stroke = "black"
  plot(" sin(x)^2 ")
  text([-2.5,-2.5], "svg/ml example")
  '>
  </div>
  

use amath to activate mathml


  <div>
  amath    sin(x)^2 
  </div>
  
<td>

etc


  <div>
  <embed src=d.svg width=300 height=300 script='
  setBorder(0)
  initPicture(-5,5)
  axes(2, 1, "labels", 1)
  stroke = "red"
  plot(" sin(x) ")
  stroke = "black"
  plot(" sin(x)^3 ")
  text([-2.5,-2.5], "svg/ml example")
  '>
  </div>
  

mathml


  <div>
  amath   sin(x)^3 
  </div>
  
</tr> </table> </center> <navigate/> </slide>


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2780434-1"; urchinTracker(); </script>