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 a⁡n,n=0..∞ is the sequence of numbers defined by the recurrence expr, the Laplace function computes the recurrence for the numbers n!⁢a⁡n.
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.
with⁡gfun:
rec≔a⁡0=0,a⁡1=1,a⁡n=n⁢a⁡n−1+a⁡n−2:
deq≔Laplace⁡rec,a⁡n
deq≔−n2−3⁢n−2⁢a⁡n+−n2−4⁢n−4⁢a⁡n+1+a⁡n+2,a⁡0=0,a⁡1=1
rec2≔rectodiffeq⁡deq,a⁡n,f⁡t
rec2≔−2⁢t2−t+1⁢f⁡t+−4⁢t3−3⁢t2⁢ⅆⅆtf⁡t+−t4−t3⁢ⅆ2ⅆt2f⁡t−t
deq2≔borel⁡rec2,f⁡t,diffeq
deq2≔−t2−t+1⁢f⁡t−ⅆⅆtf⁡t⁢t2−t
diffeqtorec⁡deq2,f⁡t,a⁡n
−a⁡n+−n−2⁢a⁡n+1+a⁡n+2,a⁡0=0,a⁡1=1
See Also
gfun[borel]
gfun[invborel]
gfun[rectodiffeq]
Download Help Document