Skip to content

Sum Double ​

Adds or subtracts 2 to 5 double inputs: out = Σ signₖ · inₖ, with each sign set to + or −. The number of input ports follows the Inputs setting, and the sign of each input is drawn next to its port. For the common two-input case, Add2 Double does the same with a smaller footprint. To add or subtract int signals such as counters, use Sum Int.

Category: Math

Ports ​

PortKindSignalNotes
in_1Control inputReal
in_2Control inputReal
in_3Control inputRealShown when Inputs is at least 3
in_4Control inputRealShown when Inputs is at least 4
in_5Control inputRealShown when Inputs is at least 5
outControl outputReal

Parameters ​

ParameterTypeDefaultUnitsDescriptionID
InputsChoice: 2 / 3 / 4 / 52—How many input ports the block has (2-5).num_inputs
Sign 1Choice: + / −+—Whether input 1 is added (+) or subtracted (−).sign_1
Sign 2Choice: + / −+—Whether input 2 is added (+) or subtracted (−).sign_2
Sign 3Choice: + / −+—Whether input 3 is added (+) or subtracted (−).sign_3
Sign 4Choice: + / −+—Whether input 4 is added (+) or subtracted (−).sign_4
Sign 5Choice: + / −+—Whether input 5 is added (+) or subtracted (−).sign_5

In the course ​