Sum - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


SignalProcessing

  

Sum

  

compute the sum of samples in an array

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Compatibility

Calling Sequence

Sum(A)

Parameters

A

-

Array of real numeric values; the signal

Description

• 

The Sum(A) command returns the sum of the values in the array A.

• 

Before the code performing the computation runs, A is converted to datatype float[8] if it does not have that datatype already. For this reason, it is most efficient if A has this datatype beforehand.

Thread Safety

• 

The SignalProcessing[Sum] command is thread-safe as of Maple 17.

• 

For more information on thread safety, see index/threadsafe.

Examples

withSignalProcessing:

aArray1,2,3,4,5,datatype=float8

a1.2.3.4.5.

(1)

Suma

15.

(2)

Compatibility

• 

The SignalProcessing[Sum] command was introduced in Maple 17.

• 

For more information on Maple 17 changes, see Updates in Maple 17.

See Also

add

Array

SignalProcessing[Mean]

with