| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Function.Finance
Contents
Description
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
Arguments
| :: (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.
Arguments
| :: (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 #
Arguments
| :: (Floating a, Real b) | |
| => a | The interest rate. |
| -> b | The lifetime of the capital. |
| -> a | The capital recovery factor. |
Compute a capital recovery factor.