gfun[listtoratpoly] - find a rational generating function

gfun[seriestoratpoly] - find a rational approximant

Calling Sequence

listtoratpoly(l, x, <[typelist]>)

seriestoratpoly(s, <[typelist]>)

Parameters

l - a list

s - a series

x - the unknown variable

[typelist] - (optional) a list of generating function types

Description

Examples

If the input is the first few elements of the Fibonacci sequence, the the output is the generating series for the Fibonacci numbers.

> with(gfun):
l:=[1,1,2,3,5,8,13];
\[[1, 1, 2, 3, 5, 8, 13]\]
> listtoratpoly(l,x);
\[-\frac{1}{x^{2}+x -1}\]
> seriestoratpoly(series(1+x+2*x^2*2!+3*x^3*3!+5*x^4*4!+8*x^5*5!+13*x^6*6!,x,8),['egf']);
\[\left[-\frac{1}{x^{2}+x -1}, \mathit{egf}\right]\]

See Also

gfun, gfun[parameters], convert[ratpoly]