@@ -931,7 +931,11 @@ def npv(rate, values):
931931 net present value:
932932
933933 >>> rate, cashflows = 0.08, [-40_000, 5_000, 8_000, 12_000, 30_000]
934+ <<<<<<< HEAD
934935 >>> round(npf.npv(rate, cashflows), 5)
936+ =======
937+ >>> np.round(npf.npv(rate, cashflows), 5)
938+ >>>>>>> 3311612dc27bf4d7df10e7cc5b7222bf51113728
935939 3065.22267
936940
937941 It may be preferable to split the projected cashflow into an initial
@@ -1061,6 +1065,7 @@ def mirr(values, finance_rate, reinvest_rate, *, raise_exceptions=False):
10611065 Finally, let's explore the situation where all cash flows are positive,
10621066 and the `raise_exceptions` parameter is set to True.
10631067
1068+ <<<<<<< HEAD
10641069 >>> npf.mirr([
10651070 ... 100, 50, 60, 70],
10661071 ... 0.10, 0.12,
@@ -1070,6 +1075,12 @@ def mirr(values, finance_rate, reinvest_rate, *, raise_exceptions=False):
10701075 ...
10711076 numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since
10721077 all cashflows are of the same sign.
1078+ =======
1079+ >>> npf.mirr([100, 50, 60, 70], 0.10, 0.12, raise_exceptions=True)
1080+ Traceback (most recent call last):
1081+ ...
1082+ numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since all cashflows are of the same sign.
1083+ >>>>>>> 3311612dc27bf4d7df10e7cc5b7222bf51113728
10731084 """
10741085 values = np .asarray (values )
10751086 n = values .size
0 commit comments