LREtools
shift
integer shift of an expression
delta
single or iterated differencing of an expression
Calling Sequence
Parameters
Description
Examples
shift(e, var)
shift(e, var, i)
delta(e, var)
delta(e, var, n)
e
-
expression
var
variable name
i
(optional) integer
n
(optional) positive integer
shift returns the expression equivalent to subs⁡var=var+i,e, where i is assumed to be 1 in the two argument case.
This procedure knows about various Maple constructs, like diff, where the variable must not be simply substituted. Currently shift knows about diff, Diff, int, Int, sum, Sum, product, and Product.
Additional constructs can be added by the user. If the procedure `LREtools/shift/f` is defined then the function call LREtools[shift](f(n,x), n, 3) will invoke `LREtools/shift/f`(f(n,x), n, 3) to compute the shift.
delta(e, var) is defined to be shift(e, var, 1)-e and delta(e, var, n) is defined to be delta(shift(e, var, 1)-e, var, n-1). Thus differencing is also user-extensible by providing the extension for shift.
with⁡LREtools:
shift⁡x5,x
x+15
shift⁡x5,x,3
x+35
shift⁡f⁡x,x,−2
f⁡x−2
shift⁡diff⁡f⁡x,x,x
D⁡f⁡x+1
δ⁡sin⁡n,n
sin⁡n+1−sin⁡n
δ⁡cos⁡n,n,2
cos⁡n+2−2⁢cos⁡n+1+cos⁡n
δ⁡Product⁡g⁡x,x,x
∏x⁡g⁡x+1−∏x⁡g⁡x
See Also
diff
Download Help Document