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.
withgfun:
diffeqtorecyz=adiffyz,z,yz,vn
vn+−an−avn+1
deq≔algeqtodiffeqy=1+zy2+y3,yz,∅:
diffeqtorecdeq,yz,um
−2m2−mum+−18m2−30m−9um+1+46m2+227m+279um+2+−4m2−26m−42um+3,u0=1,u1=2,u2=10
See Also
dsolve
dsolve/formal_series
gfun[algeqtodiffeq]
gfun[rectodiffeq]
Download Help Document