diffeqtorec - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


gfun

  

diffeqtorec

  

convert a linear differential equation into a recurrence

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

diffeqtorec(deq, y(z), u(n))

Parameters

deq

-

linear differential equation in y(z) with polynomial coefficients

y

-

name; function name

z

-

name; variable of the function y

u

-

name; recurrence name

n

-

name; index of the recurrence u

Description

• 

The diffeqtorec(deq, y(z), u(n)) command converts a linear differential equation, deq, into a recurrence.

• 

Let f be a power series solution of the differential equation.

  

If u(n) is the nth Taylor coefficient of f around zero, the diffeqtorec function returns a linear recurrence for the numbers u(n), with rational coefficients in n.

• 

The syntax is the same as that of dsolve.  Combined with algeqtodiffeq, this function produces a linear recurrence for the Taylor coefficients of an algebraic function.

Examples

> 

with⁡gfun:

> 

diffeqtorec⁡y⁡z=a⁢diff⁡y⁡z,z,y⁡z,v⁡n

v⁡n+−a⁢n−a⁢v⁡n+1

(1)
> 

deq≔algeqtodiffeq⁡y=1+z⁢y2+y3,y⁡z,∅:

> 

diffeqtorec⁡deq,y⁡z,u⁡m

−2⁢m2−m⁢u⁡m+−18⁢m2−30⁢m−9⁢u⁡m+1+46⁢m2+227⁢m+279⁢u⁡m+2+−4⁢m2−26⁢m−42⁢u⁡m+3,u⁡0=1,u⁡1=2,u⁡2=10

(2)

See Also

dsolve

dsolve/formal_series

gfun

gfun[algeqtodiffeq]

gfun[rectodiffeq]