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