topical media & game development
load script(s)
<script
src=sample-js-mathml.js>
</script>
<script
src=sample-js-asciisvg.js>
</script>
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>
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>
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>