mathml.rlg 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Sun Aug 18 18:57:10 2002 run on Windows
  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. (plus 3 (plus 5 0))
  70. 8
  71. operator gt;
  72. parseml();
  73. <math>
  74. <relation><gt/>
  75. <ci>x</ci>
  76. <ci>y</ci>
  77. </relation>
  78. </math>
  79. (gt x y)
  80. gt(x,y)
  81. end;
  82. Time for test: 90 ms