Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Financial functions.
- netPresentValue :: (Fractional a, Num a) => a -> [a] -> a
- internalRateOfReturn :: (Fractional a, Num a, Ord a) => [a] -> Either String a
- capitalRecoveryFactor :: (Floating a, Real b) => a -> b -> a
Financial functions
:: (Fractional a, Num a) | |
=> a | The rate per period. |
-> [a] | The values at the end of the periods. |
-> a | The net present value. |
Compute the net present value of a series of values.
:: (Fractional a, Num a, Ord a) | |
=> [a] | The values at the end of the periods. |
-> Either String a | The rate per period that yields a zero net present value. |
Compute the internal rate of return for a series of values.
capitalRecoveryFactor Source #
:: (Floating a, Real b) | |
=> a | The interest rate. |
-> b | The lifetime of the capital. |
-> a | The capital recovery factor. |
Compute a capital recovery factor.