Closed
Description
Whenever an array of rates is passed into np.pmt, all zeros in the array are converted to 1:
>>> import numpy as np
>>> print np.__version__
1.11.0
>>> rates = np.array([0., 0.5])
>>> print np.pmt(rates, 5, 1.0)
[-0.2 -0.57582938]
>>> print rates
[ 1. 0.5]
This is done internally in np.pmt to avoid dividing by zero, but it should be done in a way that does not modify the input arrays.