-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path4.2.3_6.4_mathml_logic_comparisons.cellml
More file actions
121 lines (121 loc) · 3.35 KB
/
4.2.3_6.4_mathml_logic_comparisons.cellml
File metadata and controls
121 lines (121 loc) · 3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="UTF-8"?>
<!-- CellML Test Suite. https://github.com/MichaelClerx/cellml-validation -->
<!-- CellML 1.0, 4.2.3: The MathML "CellML subset"
Comparison operators: eq, neq, gt, lt, geq, leq -->
<model name="mathml_logic_comparisons"
xmlns="http://www.cellml.org/cellml/1.0#"
xmlns:cellml="http://www.cellml.org/cellml/1.0#">
<component name="A">
<variable name="x" units="dimensionless" initial_value="0" />
<variable name="eq" units="dimensionless" />
<variable name="neq" units="dimensionless" />
<variable name="gt" units="dimensionless" />
<variable name="lt" units="dimensionless" />
<variable name="geq" units="dimensionless" />
<variable name="leq" units="dimensionless" />
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<eq/>
<ci>eq</ci>
<piecewise>
<piece>
<cn cellml:units="dimensionless">1</cn>
<apply>
<eq />
<ci>x</ci>
<cn cellml:units="dimensionless">2</cn>
</apply>
</piece>
<otherwise>
<cn cellml:units="dimensionless">0</cn>
</otherwise>
</piecewise>
</apply>
<apply>
<eq/>
<ci>neq</ci>
<piecewise>
<piece>
<cn cellml:units="dimensionless">1</cn>
<apply>
<neq />
<ci>x</ci>
<cn cellml:units="dimensionless">2</cn>
</apply>
</piece>
<otherwise>
<cn cellml:units="dimensionless">0</cn>
</otherwise>
</piecewise>
</apply>
<apply>
<eq/>
<ci>gt</ci>
<piecewise>
<piece>
<cn cellml:units="dimensionless">1</cn>
<apply>
<gt />
<ci>x</ci>
<cn cellml:units="dimensionless">2</cn>
</apply>
</piece>
<otherwise>
<cn cellml:units="dimensionless">0</cn>
</otherwise>
</piecewise>
</apply>
<apply>
<eq/>
<ci>lt</ci>
<piecewise>
<piece>
<cn cellml:units="dimensionless">1</cn>
<apply>
<lt />
<ci>x</ci>
<cn cellml:units="dimensionless">2</cn>
</apply>
</piece>
<otherwise>
<cn cellml:units="dimensionless">0</cn>
</otherwise>
</piecewise>
</apply>
<apply>
<eq/>
<ci>geq</ci>
<piecewise>
<piece>
<cn cellml:units="dimensionless">1</cn>
<apply>
<geq />
<ci>x</ci>
<cn cellml:units="dimensionless">2</cn>
</apply>
</piece>
<otherwise>
<cn cellml:units="dimensionless">0</cn>
</otherwise>
</piecewise>
</apply>
<apply>
<eq/>
<ci>leq</ci>
<piecewise>
<piece>
<cn cellml:units="dimensionless">1</cn>
<apply>
<leq />
<ci>x</ci>
<cn cellml:units="dimensionless">2</cn>
</apply>
</piece>
<otherwise>
<cn cellml:units="dimensionless">0</cn>
</otherwise>
</piecewise>
</apply>
</math>
</component>
</model>