-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path4.2.3_4.2_mathml_functions_non_smooth.cellml
More file actions
51 lines (51 loc) · 1.47 KB
/
4.2.3_4.2_mathml_functions_non_smooth.cellml
File metadata and controls
51 lines (51 loc) · 1.47 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
<?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"
Discontinuous and non-smooth functions: floor, ceiling, abs -->
<model name="mathml_functions_non_smooth"
xmlns="http://www.cellml.org/cellml/1.0#"
xmlns:cellml="http://www.cellml.org/cellml/1.0#">
<component name="A">
<variable name="floor" units="dimensionless" />
<variable name="ceiling" units="dimensionless" />
<variable name="abs" units="dimensionless" />
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<eq/>
<ci>floor</ci>
<apply>
<floor />
<apply>
<plus />
<cn cellml:units="dimensionless">1.2</cn>
<cn cellml:units="dimensionless">3.4</cn>
</apply>
</apply>
</apply>
<apply>
<eq/>
<ci>ceiling</ci>
<apply>
<ceiling />
<apply>
<times />
<cn cellml:units="dimensionless">3</cn>
<cn cellml:units="dimensionless">3.01</cn>
</apply>
</apply>
</apply>
<apply>
<eq/>
<ci>abs</ci>
<apply>
<abs />
<apply>
<times />
<cn cellml:units="dimensionless">-2</cn>
<cn cellml:units="dimensionless">3</cn>
</apply>
</apply>
</apply>
</math>
</component>
</model>