gfun[ratpolytocoeff] - computes the nth coefficient of a rational function

Calling Sequence

ratpolytocoeff(f, x, n)

Parameters

f - rational function in x

x,n - names

Description

Examples

> with(gfun):
ratpolytocoeff(1/(1-x-x^2),x,n);
\[\munderset{\underline{\hspace{1.25 ex}}\alpha =\textrm{RootOf}\left(\_Z^{2}+\_Z -1\right)}{\textcolor{gray}{\sum}}\! \left(-\frac{\left(-\frac{2 \underline{\hspace{1.25 ex}}\alpha }{5}-\frac{1}{5}\right) \underline{\hspace{1.25 ex}}\alpha^{-n}}{\underline{\hspace{1.25 ex}}\alpha}\right)\]

See Also

gfun, gfun[parameters],