topical media & game development

talk show tell print

sample-math-ml.htm / htm



  <script src=sample-js-mathml.js></script>
  <script src=sample-js-asciisvg.js></script>
  
  

start by loading script(s)


  <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>
  <!--<break/>-->
  <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>
  <!--<break>-->
  <div>
  amath   1/7 x^3 +  1/2 x^2 - 1/3   x - 4 
  </div>
  </tr>
  </table>
  </center>
  

new row(s) / declare


  <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>
  <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>
  <!--<break>-->
  <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.