Skip to content
/ irr Public
forked from better/irr

Better implementation of numpy.irr

License

Notifications You must be signed in to change notification settings

aziadeh/irr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 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.

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

  • Python 100.0%