raft-0.3.7.0: Miscellaneous Haskell utilities for data structures and data manipulation.

Safe HaskellSafe
LanguageHaskell2010

Data.Function.Finance

Contents

Description

Financial functions.

Synopsis

Financial functions

netPresentValue Source #

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.

internalRateOfReturn Source #

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.