[Numpy-svn] [numpy/numpy] e50475: BUG: The npv function in financial.py was incorrec...

GitHub noreply at github.com
Wed May 29 10:34:11 EDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: e50475a64050bdea104d39ad2c487e847fe4b031
      https://github.com/numpy/numpy/commit/e50475a64050bdea104d39ad2c487e847fe4b031
  Author: bebert218 <guillaume.viry at gmail.com>
  Date:   2013-05-29 (Wed, 29 May 2013)

  Changed paths:
    M numpy/lib/financial.py
    M numpy/lib/tests/test_financial.py

  Log Message:
  -----------
  BUG: The npv function in financial.py was incorrectly implemented.

Correct the implementation of the npv function, its documentation, and
the mirr function that depends on it. The test_financial.py is also
corrected to take into account those modifications

The npv function behavior was contrary to what the documentation stated
as it summed indexes 1 to M instead of 0 to M-1. The mirr function used
a corrective factor to get the correct result in spite of that error so
that factor is removed.

Closes #649





More information about the Numpy-svn mailing list