cumsum3

Syntax

cumsum3(X)

Please see cumFunctions for the parameters and windowing logic.

Details

Cumulatively calculate the cubes of squares of the elements in X.

Examples

x=[2,3,4];
cumsum3 x;
// output
[8,35,99]

m=matrix(1 2 3, 4 5 6);
m;
#0 #1
1 4
2 5
3 6
cumsum3(m);
#0 #1
1 64
9 189
36 405

Related functions: cumsum, cumsum2, cumsum4