Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Mathematical | SUM

SUM – [SUM]
Outputs the sum of all samples of input.
CATEGORY
Mathematical

DESCRIPTION
Outputs the sum of all samples of input.
RESULT VARIABLES AND PARAMETERS

ResultSum of input
SignalInput


SYNTAX

res=sum(input)
CHARACTERISTICS
Data type support
Double Floating point

EXAMPLE
For an input of value 1 acquired over a duration of 0.1 second at a sampling rate of 10000 Hz, the SUM function outputs the total sum of one thousand ones i.e. 1000.

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter