## "Fossies" - the Fresh Open Source Software Archive

### Member "MACE1.6.0/exampleScripts/sequences.txt" (18 Mar 2019, 987 Bytes) of package /windows/misc/MACE1.6.0.zip:

As a special service "Fossies" has tried to format the requested text file into HTML format (style:

standard) with prefixed line numbers.
Alternatively you can here

view or

download the uninterpreted source code file.

1 %Copyright (C) 2019 Jan Christian Rohde
2 %
3 %This file is part of MACE.
4 %
5 %MACE is free software; you can redistribute it and/or modify it under the terms of the
6 %GNU General Public License as published by the Free Software Foundation; either version 3
7 %of the License, or (at your option) any later version.
8 %
9 %MACE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10 %even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 %GNU General Public License for more details.
12 %
13 %You should have received a copy of the GNU General Public License
14 %along with MACE; if not, see http://www.gnu.org/licenses.
15
16 % This script contains examples concerning Sequences.
17
18 setCharacteristic(0)
19
20 % First some arithmetic operations of sequences
21
22 a=seq(1,2,3);
23 b=seq(i,3.14,2.81);
24
25 a+b:
26 a-b:
27 a*b:
28 a/b:
29
30 a^3:
31
32 % iterate over a sequence
33
34 size = getSize(b);
35
36 for n = 0 ; n < size ; ++n {
37 getEntry(b,n):
38 }
39
40 % connect sequences
41
42 connect(a,b):