434445464748495051
NPVFunction f = new NPVFunction(Arrays.asList( // Dates.date(2010, Calendar.JANUARY, 1), // Dates.date(2010, Calendar.DECEMBER, 31)), // Arrays.asList(-200d, 210d)); assertThat(f.compute(0.05d), is(3965.669635841685d)); } }