LREtools
REcreate
create an RESol from a recurrence equation
Calling Sequence
Parameters
Description
Examples
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 first argument should be a single recurrence relation or a set of recurrence relations. Any expressions in eqns which are not equations will be understood to be equal to zero.
The second argument fcns indicates the functions from eqns over which they are considered to be recurrences. The names must always be entered in the form function(var).
The third argument inits is a set of initial conditions on the functions fcns.
The result of an REcreate call is an RESol data-structure, which is much easier to handle than a raw recurrence equation.
In the rest of this package, a problem is synonymous with either valid input for REcreate or a valid RESol data structure.
LREtoolsREcreate⁡18+12⁢n⁢t⁡n+−20−7⁢n⁢t⁡n+1+4+n⁢t⁡n+2,t⁡n,t⁡0=0,t⁡1=2
RESol⁡18+12⁢n⁢t⁡n+−20−7⁢n⁢t⁡n+1+4+n⁢t⁡n+2=0,t⁡n,t⁡0=0,t⁡1=2,INFO
rec≔a⁡n+2−2⁢n+1⁢a⁡n+1n+n⁢a⁡nn−1=n⁢n+1:
LREtoolsREcreate⁡rec,a⁡n,∅
RESol⁡n2⁢a⁡n+−2⁢n2+n+1⁢a⁡n+1+n2−n⁢a⁡n+2=n2⁢n−1⁢n+1,a⁡n,a⁡1=0,a⁡2=a⁡2,a⁡3=a⁡3,INFO
See Also
RESol
rsolve
Download Help Document