logo-header

 
 

syntax

  • add(a, b, ...)  or add_list(a, b, ...)
  • a + b + ... 

definition

add(a, b, ...) or a + b + ... results in the element-by-element addition of corresponding values of the data items a, b, ... ..
add_list is a synonym for add.

applies to

Data items with Numeric, Point, or string value type

conditions

  1. Domain of the arguments must match or be void (literals or parameters can be added to data items of any domain).
  2. Arguments must have matching:

since version

5.15

example

1. attribute<float32> addABC (ADomain) := add(A, B, C);    
2. attribute<float32> addABC (ADomain) := A + B + C;
A B C   addABC
0 1 0 1
1 -1 1 1
-2 2 4 4
3.6 1.44 7 12.04
999 111 -5 1105
ADomain, nr of rows = 5

see also


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904