RESol
data structure to represent the solution of a recurrence equation
Calling Sequence
Parameters
Description
Examples
RESol(eqns, fcns, inits)
LREtools[REcreate](eqns, fcns, inits)
eqns
-
single equation or a set of equations
fcns
function name or set of function names
inits
set of initial conditions
The RESol command calls LREtools[REcreate] to build the RESol data structure.
This data structure represents the solution of a recurrence equation. It is to rsolve and LREtools as DESol is to dsolve and DEtools.
The parameters of an RESol are a set of normalized equations, a set of function names and a set of initial conditions.
On output, an information table, INFO is added. The entries in this table are:
type
the strings 'linear' or 'nonlinear'
functions
a name or set of names of the recurrence function(s)
vars
a name or set of names of the recurrence variable(s)
order
the order of the equation
shifteqn
an equation in &Shift[vars](functions) which represents the shift operator associated to the linear recurrence equation
coeffs
a list of the rhs of the equation and the coefficients of the shifteqn
Note that the first three items are always present, and the next three are there only if the recurrence is linear.
RESol⁡a⁡n+1−a⁡n=n,a⁡n,∅
RESol⁡a⁡n+1−a⁡n=n,a⁡n,a⁡0=a⁡0,INFO
re≔LREtoolsREcreate⁡a⁡n+2−n2⁢a⁡n+1+n−17⁢a⁡n=sin⁡n,a⁡n,a⁡0=0
re≔RESol⁡a⁡n+2−n2⁢a⁡n+1+n−17⁢a⁡n=sin⁡n,a⁡n,a⁡0=0,a⁡1=a⁡1,INFO
print⁡op⁡4,re
table⁡polycoeffs=false,nonvars=,max_shift=2,min_shift=0,shifteqn=&Shiftn⁡a2−n2⁢&Shiftn⁡a+n−17,linear=true,functions=a,coeffs=−sin⁡n,n−17,−n2,1,vars=n,order=2,rhs=sin⁡n,type=constcoeffs
re2≔LREtoolsREcreate⁡a⁡n+22−a⁡n=0,a⁡n,∅
re2≔RESol⁡a⁡n+22−a⁡n=0,a⁡n,∅,INFO
print⁡op⁡4,re2
table⁡nonvars=,max_shift=2,min_shift=0,linear=false,functions=a,vars=n,order=2
See Also
DESol
DEtools
dsolve
LREtools
LREtools[REcreate]
rsolve
Download Help Document