1on mathml;
2
3 % output
4
5sin (x);
6
7
8<math>
9   <apply><sin/>
10      <ci>x</ci>
11   </apply>
12</math>
13
14
15(x + y)^5;
16
17
18<math>
19   <apply><plus/>
20      <apply><power/>
21         <ci>x</ci>
22         <cn type="integer">5</cn>
23      </apply>
24      <apply><times/>
25         <cn type="integer">5</cn>
26         <apply><power/>
27            <ci>x</ci>
28            <cn type="integer">4</cn>
29         </apply>
30         <ci>y</ci>
31      </apply>
32      <apply><times/>
33         <cn type="integer">10</cn>
34         <apply><power/>
35            <ci>x</ci>
36            <cn type="integer">3</cn>
37         </apply>
38         <apply><power/>
39            <ci>y</ci>
40            <cn type="integer">2</cn>
41         </apply>
42      </apply>
43      <apply><times/>
44         <cn type="integer">10</cn>
45         <apply><power/>
46            <ci>x</ci>
47            <cn type="integer">2</cn>
48         </apply>
49         <apply><power/>
50            <ci>y</ci>
51            <cn type="integer">3</cn>
52         </apply>
53      </apply>
54      <apply><times/>
55         <cn type="integer">5</cn>
56         <ci>x</ci>
57         <apply><power/>
58            <ci>y</ci>
59            <cn type="integer">4</cn>
60         </apply>
61      </apply>
62      <apply><power/>
63         <ci>y</ci>
64         <cn type="integer">5</cn>
65      </apply>
66   </apply>
67</math>
68
69
70off mathml;
71
72
73
74
75parseml();
76
77<math>
78<apply><plus/>
79<cn>3</cn>
80<cn>5</cn>
81</apply>
82</math>
83
848
85
86
87operator gt;
88
89
90
91 % MathML 1.x form
92parseml();
93
94<math>
95<reln><gt/>
96<ci>x</ci>
97<ci>y</ci>
98</reln>
99</math>
100
101x>y
102
103
104 % MathML 2.x form
105parseml();
106
107<math>
108<apply><gt/>
109<ci>x</ci>
110<ci>y</ci>
111</apply>
112</math>
113
114x>y
115
116
117end;
118
119Tested on x86_64-pc-windows CSL
120Time (counter 1): 0 ms
121
122End of Lisp run after 0.00+0.06 seconds
123real 0.21
124user 0.03
125sys 0.04
126