The number of years until the bond matures expressed in decimal format.
time2Payments
An array where the first term corresponds to the number of years until the first coupon payment and the second term corresponds to the number of years until the second payment is made and so on... Note that the number of years must be expressed in decimal format.
couponPayments
An array where the first term corresponds to the amount paid by the next coupon payment and the second term corresponds to the amount paid by the coupon payment after that and so on.
Remarks
Note that the bond may be of any corporate or treasury type.
Remark: This method uses the Newton-Raphson procedure and produces a result
which is accurate to 10 decimal places.