%Copyright (C) 2019 Jan Christian Rohde
%
%This file is part of MACE.
%
%MACE is free software; you can redistribute it and/or modify it under the terms of the
%GNU General Public License as published by the Free Software Foundation; either version 3
%of the License, or (at your option) any later version.
%
%MACE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
%even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%GNU General Public License for more details.
%
%You should have received a copy of the GNU General Public License
%along with MACE; if not, see http://www.gnu.org/licenses.
% This script contains examples concerning Sequences.
setCharacteristic(0)
% First some arithmetic operations of sequences
a=seq(1,2,3);
b=seq(i,3.14,2.81);
a+b:
a-b:
a*b:
a/b:
a^3:
% iterate over a sequence
size = getSize(b);
for n = 0 ; n < size ; ++n {
getEntry(b,n):
}
% connect sequences
connect(a,b):