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

`runprod(`

`x` [, `axis`])

Running product of numerical

along the indicated
`x`

. If `axis`

is absent, then `axis`

is treated as if it were one-dimensional. In the result, each next
number in the direction of the selected `x`

is equal to
the corresponding number from `axis`

times the previous number
in the selected `x`

. The first number in the selected
`axis`

is just copied to the result.
`axis`

For example, if `x`

is equal to `[2,4,3]`

, then
`runprod(`

will yield `x`

)`[2,8,24]`

.

See also: runsum