logo-header

 
 

syntax

  • div(a, b)
  •  a / b

definition

div(a, b)  or a / b results in the element-by-element division of the values of item a by the corresponing values of item b. The resulting metric (of the values unit) is the quotient of the metrics of the arguments.

description

A division by zero results in an undefined (null) value.

applies to

Data items with Numeric or Point value type

Units with Numeric value type

conditions

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

since version

5.15

example

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

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