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

`unmod(`

`x` [, `axis`] , `period` [, `average`])

Undoes the effects of the “modulus” function along the indicated

, assuming that the average increase from one element
to the next is `axis`

, and the modulus period is
`average`

. For those elements that have coordinate 0 along
the indicated axis, the result has the same value as `period`

.
`x`

If

is the result, then `y`

, and `y` mod `period`
eq `x` mod `period``differ(`

and `y`, `axis`) ge
`average` - 0.5*`period``differ(`

.
`y`,
`axis`) lt `average` + 0.5*`period`

If 3 arguments are specified, then the missing argument is

and defaults to 0. `axis`

defaults to
0.
`average`

See also: mod