gfun
Laplace
compute the Laplace transform of a generating function
Calling Sequence
Parameters
Description
Examples
Laplace(expr, a(n), t)
expr
-
linear recurrence with polynomial coefficients
a
name; recurrence name
n
name; index of the recurrence a
t
(optional) name; 'diffeq'
The Laplace(expr, a(n)) command computes the Laplace transform of a generating function.
If an,n=0..∞ is the sequence of numbers defined by the recurrence expr, the Laplace function computes the recurrence for the numbers n!an.
If t is specified as 'diffeq', expr is considered a linear differential equation with polynomial coefficients. The function returns a linear differential equation satisfied by its Laplace transform.
The invborel command can be used as a synonym of Laplace, that is, the invborel(expr, a(n)) command can be used instead.
withgfun:
rec≔a0=0,a1=1,an=nan−1+an−2:
deq≔Laplacerec,an
deq≔−n2−3n−2an+−n2−4n−4an+1+an+2,a0=0,a1=1
rec2≔rectodiffeqdeq,an,ft
rec2≔−2t2−t+1ft+−4t3−3t2ⅆⅆtft+−t4−t3ⅆ2ⅆt2ft−t
deq2≔borelrec2,ft,diffeq
deq2≔−t2−t+1ft−ⅆⅆtftt2−t
diffeqtorecdeq2,ft,an
−an+−n−2an+1+an+2,a0=0,a1=1
See Also
gfun[borel]
gfun[invborel]
gfun[rectodiffeq]
Download Help Document