simlogo1

 

 

 

SimQuest 6.4 help

 

 

Subtract

 

When applied to two numbers or to two arrays of numbers, Subtract produces the difference of the two numbers or the component wise difference of the two arrays, respectively.
It has three variables: argument1, argument2 and result.

 

Structure (for scalars):

       argument1 - argument2 = result

 

Examples:

       6 - 4 = 2

       10 - 15 = -5

       -8 - 4 = -12

       -6 - -8 = 2

       (6, 10, -8, -6) - (4, 15, 4, -8) = (2, -5, -12, 2)

 

 

 

Related topics:

 

 

 

Copyright University of Twente 2011