gfun
diffeqtorec
convert a linear differential equation into a recurrence
Calling Sequence
Parameters
Description
Examples
diffeqtorec(deq, y(z), u(n))
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
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.
with⁡gfun:
diffeqtorec⁡y⁡z=a⁢diff⁡y⁡z,z,y⁡z,v⁡n
v⁡n+−a⁢n−a⁢v⁡n+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
See Also
dsolve
dsolve/formal_series
gfun[algeqtodiffeq]
gfun[rectodiffeq]
Download Help Document