Sum

Add two vectors of equal length

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The output vector y is the sum of the input vectors u1 and u2, which need to have length nin:

y_i = u1[i] + u2[i]

Parameters (1)

nin

Value: 2

Type: Integer

Description: Length of input and output vectors

Connectors (3)

u1

Type: RealMultiInput[nin]

Description: Input vector 1

u2

Type: RealMultiInput[nin]

Description: Input vector 2

y

Type: RealMultiOutput[nin]

Description: Output with same dimension as inputs