|
| Math.Combinat.Numbers.Series |
|
|
|
|
| Description |
Some basic power series expansions.
This module is not re-exported by Math.Combinat.
Note: the "convolveWithXXX" functions are much faster than the equivalent
(XXX `convolve`)!
TODO: better names for these functions.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| The series [1,0,0,0,0,...], which is the neutral element for the convolution.
|
|
|
| Convolution of series. The result is always an infinite list. Warning: This is slow!
|
|
|
| Convolution of many series. Still slow!
|
|
| "Coin" series
|
|
|
Power series expansion of
1 / ( (1-x^k_1) * (1-x^k_2) * ... * (1-x^k_n) )
Example:
(coinSeries [2,3,5])!!k is the number of ways
to pay k dollars with coins of two, three and five dollars.
TODO: better name?
|
|
|
Generalization of the above to include coefficients: expansion of
1 / ( (1-a_1*x^k_1) * (1-a_2*x^k_2) * ... * (1-a_n*x^k_n) )
|
|
|
|
| convolveWithCoinSeries' :: Num a => [(a, Int)] -> [a] -> [a] | Source |
|
|
| Reciprocals of products of polynomials
|
|
|
| Convolution of many pseries, that is, the expansion of the reciprocal
of a product of polynomials
|
|
|
| The same, with coefficients.
|
|
|
|
| convolveWithProductPSeries' :: Num a => [[(a, Int)]] -> [a] -> [a] | Source |
|
| This is the most general function in this module; all the others
are special cases of this one.
|
|
| Reciprocals of polynomials
|
|
|
The power series expansion of
1 / (1 - x^k_1 - x^k_2 - x^k_3 - ... - x^k_n)
|
|
|
Convolve with (the expansion of)
1 / (1 - x^k_1 - x^k_2 - x^k_3 - ... - x^k_n)
|
|
|
The expansion of
1 / (1 - a_1*x^k_1 - a_2*x^k_2 - a_3*x^k_3 - ... - a_n*x^k_n)
|
|
| convolveWithPSeries' :: Num a => [(a, Int)] -> [a] -> [a] | Source |
|
Convolve with (the expansion of)
1 / (1 - a_1*x^k_1 - a_2*x^k_2 - a_3*x^k_3 - ... - a_n*x^k_n)
|
|
|
| Constructors | | Instances | |
|
|
|
|
|
|
|
Convolve with (the expansion of)
1 / (1 +- x^k_1 +- x^k_2 +- x^k_3 +- ... +- x^k_n)
Should be faster than using convolveWithPSeries'.
Note: Plus corresponds to the coefficient -1 in pseries' (since
there is a minus sign in the definition there)!
|
|
| Produced by Haddock version 2.6.1 |