gfun
listtoseries
convert a list into a series
seriestolist
convert a series into a list
listtolist
convert a list into a list
seriestoseries
convert a series into a series
Calling Sequence
Parameters
Description
Examples
listtoseries(l, x, gf)
listtolist(l, gf)
seriestolist(s, gf)
seriestoseries(s, gf)
l
-
list
x
name; unknown variable
gf
(optional) generating function type, e.g., 'egf' or 'ogf'
s
series
The listtoseries(l, x, gf) command accepts a list as input and returns a series.
By default, the listtoseries function creates a power series whose coefficients are exactly the elements of the list specified.
The listtolist(l, gf) command accepts a list as input and returns a list.
By default, the listtolist function returns the input list unchanged.
The seriestolist(s, gf) command accepts a series as input and returns a list.
By default, the seriestolist command returns a list whose entries are exactly the coefficients of the series specified.
The seriestoseries(s, gf) command accepts a series as input and returns a series.
By default, the seriestoseries function returns the input series unchanged.
Lists are viewed as lists of coefficients of power series and reciprocally series are viewed as generating series of lists of coefficients.
If gf is specified, it is considered to be a type of generating function. The coefficients of the output are those of the corresponding generating function of the input.
E.g., listtoseries(l, x, 'egf') resp. listtolist(l, 'egf') returns the series resp. the list whose coefficients are li+1i! for 0≤i. Similarly, if s is a series with coefficients si for 0≤i, then seriestoseries(s, 'egf') resp. seriestolist(s, 'egf') returns the series resp. the list whose coefficients are sii!.
with⁡gfun:
l≔1,1,2,5,14,42,132,429,1430,4862,16796,58786:
listtoseries⁡l,x,egf
1+x+x2+56⁢x3+712⁢x4+720⁢x5+1160⁢x6+1431680⁢x7+1434032⁢x8+2431181440⁢x9+4199907200⁢x10+41992851200⁢x11+O⁡x12
The LambertW function is the inverse of y⁢ⅇ−y. The following is a simple way to compute Taylor expansions of such functions.
S≔series⁡y⁢exp⁡−y,y
S≔y−y2+12⁢y3−16⁢y4+124⁢y5+O⁡y6
seriestoseries⁡S,revogf
y+y2+32⁢y3+83⁢y4+12524⁢y5+O⁡y6
You can then extract the list of coefficients.
L≔seriestolist⁡
L≔0,1,1,32,83,12524
Multiplying the nth coefficient by n! recovers the number of planar trees of size n.
listtolist⁡L,Laplace
0,1,2,9,64,625
See Also
gfun/gftypes
solve
Download Help Document