-
Notifications
You must be signed in to change notification settings - Fork 1
Sub
cicada edited this page Dec 7, 2022
·
17 revisions
Arithmetic functions subtract(-)
- sub(a, b)
- a - b
sub(a, b) or a - b results in the element-by-element subtraction of the values of data item b from the corresponding values of data item a.
Data items with Numeric or Point value type
- Domain units of the arguments must match or be void (literals or parameters can be subtracted from data data items of any domain).
- Arguments must have matching:
5.15
1. attribute AminB (ADomain) := sub(A, B);
2. attribute AminB (ADomain) := A -B;
| A | B | AminB | |
| 0 | 1 | -1 | |
| 1 | -1 | 2 | |
| -2 | 2 | -4 | |
| 3.6 | 1.44 | 2.16 | |
| 999 | 111 | 888 |
ADomain, nr of rows = 5
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.