Next: , Previous: , Up: Internal Routines   [Contents][Index]


15.5.511 runprod

runprod(x [, axis])

Running product of numerical x along the indicated axis. If axis is absent, then x is treated as if it were one-dimensional. In the result, each next number in the direction of the selected axis is equal to the corresponding number from x times the previous number in the selected axis. The first number in the selected axis is just copied to the result.

For example, if x is equal to [2,4,3], then runprod(x) will yield [2,8,24].

See also: runsum