Divide

Divides records in lhs by rhs and stores the result in answer.

Inputs

lhs
A value table.
rhs
A value table.

Outputs

answer
A value table.

Comments

  • lhs, rhs, and answer must be of the same binding.
  • lhs, rhs, and answer must be of the same format (after promotion).
  • If lhs and rhs are both constant value tables (created by the Constant operator), no records will be added to the answer table.
  • If lhs and rhs are vectors or tensors, a component-wise multiplication is performed, functioning as a inverse-scale operation.
  • If a record in rhs contains any zeros, no value will be placed in the answer table.

Syntax

lhs / rhs

XML Example

<call name="Divide" lhs="lhs_tab" rhs="rhs_tab" answer="ans_tab" />