Subtract

Subtracts records in rhs from lhs 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.
  • When subtracting directional values such as vector and tensor, no checks are made to verify they are relative to the same system.

Syntax

lhs - rhs

XML Example

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