finj is a Clojure library for financial computations.
The library lives under finj
and is divided into the following namespaces and functions (use (doc namespace/function)
to read the documentation):
present-immediate-factor
:rate :periodfuture-immediate-factor
:rate :periodpresent-immediate-value
:payment :rate :periodpresent-due-value
:payment :rate :periodfuture-immediate-value
:payment :rate :periodfuture-due-value
:payment :rate :periodperpetuity-immediate-value
:payment :rateperpetuity-due-value
:payment :rate
rate
:rate-per-centaccumulation-factor
:rate
amount
:present-value :rate :periodfinal-value
:present-value :rate :periodpresent-value
:final-value :rate :periodyield
:final-value :present-value :periodperiod
:final-value :present-value :rateactual-value
:present-value :rate :start-part :period :end-partfinal-annual-value
:present-value :rate :period :in-year-periodrelative-annual-rate
:rate :in-year-periodconformal-annual-rate
:rate :in-year-periodeffective-annual-rate
:relative-annual-rate :in-year-periodcontinuous-value
:present-value :rate :periodintensity
:raterate
:intensity
straight-line-annual-expense
:fixed-asset :residual-value :periodstraight-line-expense
:fixed-asset :residual-value :periodstraight-line-accumulated
:fixed-asset :residual-value :periodstraight-line-book-value
:fixed-asset :residual-value :perioddeclining-balance-rate
:fixed-asset :residual-value :perioddeclining-balance-rate-expense
:fixed-asset :residual-value :perioddeclining-balance-rate-accumulated
:fixed-asset :residual-value :perioddeclining-balance-rate-book-value
:fixed-asset :residual-value :periodsum-of-years-digit-expense
:fixed-asset :residual-value :periodsum-of-years-digit-accumulated
:fixed-asset :residual-value :periodsum-of-years-digit-book-value
:fixed-asset :residual-value :periodunits-of-production-expense
:fixed-asset :residual-value :productionunits-of-production-accumulated
:fixed-asset :residual-value :productionunits-of-production-book-value
:fixed-asset :residual-value :production
amount
:present-value :rate :periodfinal-value
:present-value :rate :periodpresent-value
:final-value :rate :periodrate
:final-value :present-value :periodperiod
:final-value :present-value :rateday
:final-value :present-value :rate :days-per-year
net-present-value
:rate :cashflowsadjusted-present-value
:value-without-liabilities :borrowed-capital :rate :risk-free-rateequivalent-annual-cost
:investment :period :maintenance :rate
rate-balance-due
:loan :period :repayment-periodrate-interest-amount
:loan :period :repayment-period :rateannuity
:loan :period :accumulation-factorannuity-amount
:loan :annuity :period :repayment-period :accumulation-factorannuity-balance-due
:loan :annuity :period :accumulation-factorannuity-interest-amount
:annuity :first-annuity-amount :period :accumulation-factorperiod
:loan :annuity :accumulation-factor
final-due-value
:payment :accumulation-factor :periodfinal-immediate-value
:payment :accumulation-factor :periodpresent-due-value
:payment :accumulation-factor :periodpresent-immediate-value
:payment :accumulation-factor :periodperpetuity-due-value
:payment :accumulation-factorperpetuity-immediate-value
:payment :accumulation-factorperiod
:payment :accumulation-factor :final-immediate-value :present-immediate-value
due-payments
:amount :rate :periodimmediate-payments
:amount :rate :period
debt-ratio
:total-debt :total-assetsdebt-to-capital-ratio
:debt :equitydebt-to-equity-ratio
:debt :equitydebtor-collection-period
:average-debtor :credit-sales :opt-def :days 365current-ratio
:current-assets :current-liabilitiescapital-adequacy-ratio
:tier-1-capital :tier-2-capital :risk-weighted-assetscapital-recovery-factor
:rate :periodcapitalization-rate
:income :costequity-ratio
:equity :total-assetsreturn-on-assets
:income :assetssustainable-growth-rate
:profit-margin :dividend-payout-ratio :debt-to-equity-ratio :assets-to-sales-ratiotreynor-ratio
:portfolio-return :risk-free-rate :portfolio-beta
bisect
:function :lower-startpoint :upper-startpointsecant
:function :first :secondnewton
:function :derivative :min-denominator :start-valueregula-falsi
:function :lower-startpoint :upper-startpoint
market-price
:real-capital :nominal-capital :nominal-rate :accumulation-factor :effective-accumulation-factor :period :real-benefit :nominal-benefit :nominal-rate :real-rate :agioreal-rate
:market-price :nominal-rate :agio :period
<dependencies>
<dependency>
<groupId>com.github.sebhoss</groupId>
<artifactId>finj</artifactId>
<version>[2.0.0,3.0.0)</version>
</dependency>
</dependencies>
[com.github.sebhoss/finj "[2.0.0,3.0.0)"]
This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.