RESol - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


RESol

data structure to represent the solution of a recurrence equation

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RESol(eqns, fcns, inits)

LREtools[REcreate](eqns, fcns, inits)

Parameters

eqns

-

single equation or a set of equations

fcns

-

function name or set of function names

inits

-

set of initial conditions

Description

• 

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.

Examples

RESolan+1an=n,an,

RESolan+1an=n,an,a0=a0,INFO

(1)

reLREtoolsREcreatean+2n2an+1+n17an=sinn,an,a0=0

reRESolan+2n2an+1+n17an=sinn,an,a0=0,a1=a1,INFO

(2)

printop4,re

tablepolycoeffs=false,nonvars=,max_shift=2,min_shift=0,shifteqn=&Shiftna2n2&Shiftna+n17,linear=true,functions=a,coeffs=sinn,n17,n2,1,vars=n,order=2,rhs=sinn,type=constcoeffs

(3)

re2LREtoolsREcreatean+22an=0,an,

re2RESolan+22an=0,an,,INFO

(4)

printop4,re2

tablenonvars=,max_shift=2,min_shift=0,linear=false,functions=a,vars=n,order=2

(5)

See Also

DESol

DEtools

dsolve

LREtools

LREtools[REcreate]

rsolve