cumsum3
Syntax
cumsum3(X)
Please see Cumulative Window Functions (cum-functions) 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;
[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 |