rgf_relate - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


genfunc

  

rgf_relate

  

relate sequences with common factors in their generating functions

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

rgf_relate(Fz, z, Fn, n, Gz)

rgf_relate(Fz, z, Fn, n, Gy, y)

Parameters

Fz

-

rational generating function

z

-

name, generating function variable

Fn

-

expression for nth term of the sequence encoded by Fz

n

-

name, index variable for Fn

Gz, Gy

-

rational generating function

y

-

(optional) name, generating function variable for Gy

Description

• 

This function relates sequences with common nonzero roots in the denominators of their generating functions. If the generating functions do not have common roots, FAIL is returned.

• 

If the optional parameter y is used, it is the generating function variable for the fifth parameter. The generating function Gy must not involve the variable z in this case.

• 

The nth term of the sequence encoded by Gz (Gy) is expressed as a function of Fn.

• 

The value FAIL is returned if Fz is a trivial rational generating function.

• 

The command with(genfunc,rgf_relate) allows the use of the abbreviated form of this command.

Examples

> 

with⁡genfunc:

> 

Fz≔11−a⁢z⁢1−b⁢z:

> 

rgf_relate⁡Fz,z,f⁡n,n,11−a⁢z

−b⁢f⁡n−1+f⁡n

(1)
> 

rgf_relate⁡11−b⁢z,z,g⁡n,n,Fz

−b⁢g⁡na−b+a⁢ana−b

(2)
> 

rgf_relate⁡Fz,z,f⁡n,n,11−b⁢w⁢1−c⁢w,w

−b⁢a⁢f⁡n−1b−c+b⁢f⁡nb−c−c⁢cnb−c

(3)
> 

rgf_relate⁡Fz,z,f⁡n,n,11−a⁢z2

−b⁢n+1⁢f⁡n−1+n+1⁢f⁡n

(4)
> 

normal⁡

−n⁢b⁢f⁡n−1−b⁢f⁡n−1+n⁢f⁡n+f⁡n

(5)
> 

Fz≔z1−z−z2:

> 

rgf_relate⁡Fz,z,F⁡n,n,Fz2

2⁢n⁢F⁡n−15+n5−15⁢F⁡n

(6)
> 

normal⁡

F⁡n⁢n5−F⁡n5+2⁢n⁢F⁡n−15

(7)

See Also

genfunc

genfunc/rgf_charseq