mathml.rlg 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Tue Apr 15 00:35:11 2008 run on win32
  2. on mathml;
  3. % output
  4. sin (x);
  5. <math>
  6. <apply><sin/>
  7. <ci>x</ci>
  8. </apply>
  9. </math>
  10. (x + y)^5;
  11. <math>
  12. <apply><plus/>
  13. <apply><power/>
  14. <ci>x</ci>
  15. <cn type="integer">5</cn>
  16. </apply>
  17. <apply><times/>
  18. <cn type="integer">5</cn>
  19. <apply><power/>
  20. <ci>x</ci>
  21. <cn type="integer">4</cn>
  22. </apply>
  23. <ci>y</ci>
  24. </apply>
  25. <apply><times/>
  26. <cn type="integer">10</cn>
  27. <apply><power/>
  28. <ci>x</ci>
  29. <cn type="integer">3</cn>
  30. </apply>
  31. <apply><power/>
  32. <ci>y</ci>
  33. <cn type="integer">2</cn>
  34. </apply>
  35. </apply>
  36. <apply><times/>
  37. <cn type="integer">10</cn>
  38. <apply><power/>
  39. <ci>x</ci>
  40. <cn type="integer">2</cn>
  41. </apply>
  42. <apply><power/>
  43. <ci>y</ci>
  44. <cn type="integer">3</cn>
  45. </apply>
  46. </apply>
  47. <apply><times/>
  48. <cn type="integer">5</cn>
  49. <ci>x</ci>
  50. <apply><power/>
  51. <ci>y</ci>
  52. <cn type="integer">4</cn>
  53. </apply>
  54. </apply>
  55. <apply><power/>
  56. <ci>y</ci>
  57. <cn type="integer">5</cn>
  58. </apply>
  59. </apply>
  60. </math>
  61. off mathml;
  62. parseml();
  63. <math>
  64. <apply><plus/>
  65. <cn>3</cn>
  66. <cn>5</cn>
  67. </apply>
  68. </math>
  69. 8
  70. operator gt;
  71. % MathML 1.x form
  72. parseml();
  73. <math>
  74. <reln><gt/>
  75. <ci>x</ci>
  76. <ci>y</ci>
  77. </reln>
  78. </math>
  79. x>y
  80. % MathML 2.x form
  81. parseml();
  82. <math>
  83. <apply><gt/>
  84. <ci>x</ci>
  85. <ci>y</ci>
  86. </apply>
  87. </math>
  88. x>y
  89. end;
  90. Time for test: 1 ms, plus GC time: 10 ms