Ticket #671: plustimes.omdoc

File plustimes.omdoc, 2.1 KB (added by uholzer, 21 months ago)

test case

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<omdoc xml:id="binomial-ntn-omdoc" modules="CD" version="1.8" xmlns="http://omdoc.org/ns"
3  xmlns:om="http://www.openmath.org/OpenMath" xmlns:dc="http://purl.org/dc/elements/1.1/"
4  xmlns:cc="http://creativecommons.org/ns" xmlns:m="http://www.w3.org/1998/Math/MathML"
5  xmlns:mcd="http://www.w3.org/ns/mathml-cd" >
6  <theory xml:id="sets-operations">
7  <notation>
8    <prototype>
9      <m:apply>
10        <m:csymbol cd="arith1" mcd:cr="fun">plus</m:csymbol>
11        <exprlist name="args">
12          <expr name="arg"/>
13        </exprlist>
14      </m:apply>
15    </prototype>
16    <rendering precedence="500">
17      <m:mrow>
18        <m:mo mcd:egroup="fence" fence="true">(</m:mo>
19        <iterate name="args" precedence="500">
20          <separator><m:mo mcd:cr="fun">+</m:mo></separator>
21          <render name="arg"/>
22        </iterate>
23        <m:mo mcd:egroup="fence" fence="true">)</m:mo>
24      </m:mrow>
25    </rendering>
26  </notation>
27
28  <notation>
29    <prototype>
30      <m:apply>
31        <m:csymbol cd="arith1" mcd:cr="fun">times</m:csymbol>
32        <exprlist name="args">
33          <expr name="arg"/>
34        </exprlist>
35      </m:apply>
36    </prototype>
37    <rendering precedence="400">
38      <m:mrow>
39        <m:mo mcd:egroup="fence" fence="true">(</m:mo>
40        <iterate name="args" precedence="400">
41          <separator>
42            <m:mo mcd:cr="fun">⁢</m:mo>
43          </separator>
44          <render name="arg"/>
45        </iterate>
46        <m:mo mcd:egroup="fence" fence="true">)</m:mo>
47      </m:mrow>
48    </rendering>
49  </notation>
50
51  <omtext>
52  <CMP>
53    <math xmlns="http://www.w3.org/1998/Math/MathML">
54    <apply><csymbol cd="arith1">plus</csymbol>
55      <apply><csymbol cd="arith1">times</csymbol>
56        <ci>a</ci>
57        <ci>x</ci>
58      </apply>
59      <ci>b</ci>
60    </apply>
61    </math>
62  </CMP>
63  </omtext>
64
65  <omtext>
66  <CMP>
67    <math xmlns="http://www.w3.org/1998/Math/MathML">
68    <apply><csymbol cd="arith1">times</csymbol>
69      <apply><csymbol cd="arith1">plus</csymbol>
70        <ci>a</ci>
71        <ci>x</ci>
72      </apply>
73      <ci>b</ci>
74    </apply>
75    </math>
76  </CMP>
77  </omtext>
78
79  </theory>
80</omdoc>