arithmoi 0.4.0.0 → 0.4.0.1
raw patch · 4 files changed
+14/−5 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Changes +2/−0
- Math/NumberTheory/MoebiusInversion.hs +6/−2
- Math/NumberTheory/MoebiusInversion/Int.hs +5/−2
- arithmoi.cabal +1/−1
Changes view
@@ -1,3 +1,5 @@+0.4.0.1:+ Fixed Haddock bug 0.4.0.0: Added generalised Moebius inversion, to be continued 0.3.0.0:
Math/NumberTheory/MoebiusInversion.hs view
@@ -28,7 +28,10 @@ where triangle n = (n*(n-1)) `quot` 2 --- | The generalised Moebius inversion implemented here allows an efficient+-- | @generalInversion g n@ evaluates the generalised Moebius inversion of @g@+-- at the argument @n@.+--+-- The generalised Moebius inversion implemented here allows an efficient -- calculation of isolated values of the function @f : N -> Z@ if the function -- @g@ defined by --@@ -52,6 +55,7 @@ -- -- > -- > f n = number of reduced proper fractions with denominator <= n+-- > -- > g n = number of proper fractions with denominator <= n -- > --@@ -65,7 +69,7 @@ -- Since the function arguments are used as array indices, the domain of -- @f@ is restricted to 'Int'. ----- The value @f n@ is then computed by @generalInversion g n). Note that when+-- The value @f n@ is then computed by @generalInversion g n@). Note that when -- many values of @f@ are needed, there are far more efficient methods, this -- method is only appropriate to compute isolated values of @f@. generalInversion :: (Int -> Integer) -> Int -> Integer
Math/NumberTheory/MoebiusInversion/Int.hs view
@@ -29,7 +29,10 @@ where triangle n = (n*(n-1)) `quot` 2 --- | The generalised Moebius inversion implemented here allows an efficient+-- | @generalInversion g n@ evaluates the generalised Moebius inversion of @g@+-- at the argument @n@.+--+-- The generalised Moebius inversion implemented here allows an efficient -- calculation of isolated values of the function @f : N -> Z@ if the function -- @g@ defined by --@@ -67,7 +70,7 @@ -- That bears the risk of overflow, however, so be sure to use it only when it's -- safe. ----- The value @f n@ is then computed by @generalInversion g n). Note that when+-- The value @f n@ is then computed by @generalInversion g n@). Note that when -- many values of @f@ are needed, there are far more efficient methods, this -- method is only appropriate to compute isolated values of @f@. generalInversion :: (Int -> Int) -> Int -> Int
arithmoi.cabal view
@@ -1,5 +1,5 @@ name : arithmoi-version : 0.4.0.0+version : 0.4.0.1 cabal-version : >= 1.6 author : Daniel Fischer copyright : (c) 2011 Daniel Fischer