-
Notifications
You must be signed in to change notification settings - Fork 1
Div
mtbeek32 edited this page Jan 25, 2024
·
9 revisions
Arithmetic functions divide (/)
- div(a, b)
- a / b
div(a, b) or a / b results in the element-by-element division of the values of data item a by the corresponding values of data item b. The resulting metric of the values unit is the quotient of the metric of the arguments.
A division by zero results in an undefined (null) value.
Data items with Numeric or Point value type
Units with Numeric value type
- Domain units of the arguments|argument must match or be void (literals or parameters can be divided by data items of any domain).
- Arguments must have matching:
1. attribute<float32> divAB (ADomain) := div(A, B);
2. attribute<float32> divAB (ADomain) := A / B;
A | B | divAB |
---|---|---|
0 | 1 | 0 |
1 | -1 | -1 |
-2 | 2 | -1 |
3.6 | 1.44 | 2.5 |
999 | 111 | 9 |
ADomain, nr of rows = 5
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.