@@ -931,7 +931,11 @@ def npv(rate, values):
931
931
net present value:
932
932
933
933
>>> rate, cashflows = 0.08, [-40_000, 5_000, 8_000, 12_000, 30_000]
934
+ <<<<<<< HEAD
934
935
>>> round(npf.npv(rate, cashflows), 5)
936
+ =======
937
+ >>> np.round(npf.npv(rate, cashflows), 5)
938
+ >>>>>>> 3311612dc27bf4d7df10e7cc5b7222bf51113728
935
939
3065.22267
936
940
937
941
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):
1061
1065
Finally, let's explore the situation where all cash flows are positive,
1062
1066
and the `raise_exceptions` parameter is set to True.
1063
1067
1068
+ <<<<<<< HEAD
1064
1069
>>> npf.mirr([
1065
1070
... 100, 50, 60, 70],
1066
1071
... 0.10, 0.12,
@@ -1070,6 +1075,12 @@ def mirr(values, finance_rate, reinvest_rate, *, raise_exceptions=False):
1070
1075
...
1071
1076
numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since
1072
1077
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
1073
1084
"""
1074
1085
values = np .asarray (values )
1075
1086
n = values .size
0 commit comments