Skip to content

better/irr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis status

This repo contains a custom implementation of numpy.irr built from scratch. It is used to compute the internal rate of return, also called APR, which is useful in a wide range of financial circumstances.

What's wrong with numpy.irr? It's extremely slow and usually returns nan.

Installing

The easiest way to install is probably to run this:

pip install -e git://github.com/better/irr#egg=irr

More info

There are two implementations available in this package. irr.irr defaults to irr.irr_binary_search which is slower but more stable. There is also irr.irr_newton which is much faster but sometimes doesn't converge.

Binary Search

binary search

Newton's method

newton

Misc

This repo uses the MIT License

About

Better implementation of numpy.irr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages