MathObj.PowerSeries2
 Contents Series arithmetic
Description
Two-variate power series.
Synopsis
newtype T a = Cons {
 coeffs :: Core a
}
type Core a = [[a]]
isValid :: [[a]] -> Bool
check :: [[a]] -> [[a]]
fromCoeffs :: [[a]] -> T a
fromPowerSeries0 :: C a => T a -> T a
fromPowerSeries1 :: C a => T a -> T a
lift0 :: Core a -> T a
lift1 :: (Core a -> Core a) -> T a -> T a
lift2 :: (Core a -> Core a -> Core a) -> T a -> T a -> T a
lift0fromPowerSeries :: [T a] -> Core a
lift1fromPowerSeries :: ([T a] -> [T a]) -> Core a -> Core a
lift2fromPowerSeries :: ([T a] -> [T a] -> [T a]) -> Core a -> Core a -> Core a
const :: a -> T a
appPrec :: Int
sub :: C a => Core a -> Core a -> Core a
add :: C a => Core a -> Core a -> Core a
negate :: C a => Core a -> Core a
scale :: C a => a -> Core a -> Core a
mul :: C a => Core a -> Core a -> Core a
divide :: C a => Core a -> Core a -> Core a
sqrt :: C a => (a -> a) -> Core a -> Core a
swapVariables :: Core a -> Core a
differentiate0 :: C a => Core a -> Core a
differentiate1 :: C a => Core a -> Core a
integrate0 :: C a => [a] -> Core a -> Core a
integrate1 :: C a => [a] -> Core a -> Core a
comp :: C a => [a] -> Core a -> Core a
Documentation
 newtype T a Source

In order to handle both variables equivalently we maintain a list of coefficients for terms of the same total degree. That is

``` eval [[a], [b,c], [d,e,f]] (x,y) ==
a + b*x+c*y + d*x^2+e*x*y+f*y^2
```

Although the sub-lists are always finite and thus are more like polynomials than power series, division and square root computation are easier to implement for power series.

Constructors
Cons
 coeffs :: Core a Instances
 Functor T C T (Eq a, C a) => Eq (T a) (Ord a, C a) => Ord (T a) Show a => Show (T a) C a => C (T a) C a => C (T a) C a => C (T a) C a => C (T a)
 type Core a = [[a]] Source
 isValid :: [[a]] -> Bool Source
 check :: [[a]] -> [[a]] Source
 fromCoeffs :: [[a]] -> T a Source
 fromPowerSeries0 :: C a => T a -> T a Source
 fromPowerSeries1 :: C a => T a -> T a Source
 lift0 :: Core a -> T a Source
 lift1 :: (Core a -> Core a) -> T a -> T a Source
 lift2 :: (Core a -> Core a -> Core a) -> T a -> T a -> T a Source
 lift0fromPowerSeries :: [T a] -> Core a Source
 lift1fromPowerSeries :: ([T a] -> [T a]) -> Core a -> Core a Source
 lift2fromPowerSeries :: ([T a] -> [T a] -> [T a]) -> Core a -> Core a -> Core a Source
 const :: a -> T a Source
 appPrec :: Int Source
Series arithmetic
 sub :: C a => Core a -> Core a -> Core a Source
 add :: C a => Core a -> Core a -> Core a Source
 negate :: C a => Core a -> Core a Source
 scale :: C a => a -> Core a -> Core a Source
 mul :: C a => Core a -> Core a -> Core a Source
 divide :: C a => Core a -> Core a -> Core a Source
 sqrt :: C a => (a -> a) -> Core a -> Core a Source
 swapVariables :: Core a -> Core a Source
 differentiate0 :: C a => Core a -> Core a Source
 differentiate1 :: C a => Core a -> Core a Source
 integrate0 :: C a => [a] -> Core a -> Core a Source
 integrate1 :: C a => [a] -> Core a -> Core a Source
 comp :: C a => [a] -> Core a -> Core a Source
Since the inner series must start with a zero, the first term is omitted in y.