MathTop

net_present_value 函数

计算现金流净现值,其中第一项为当前时点现金流。

语法

  • Finance:-NetPresentValue([c0, c1, ...], rate)
  • Finance:-NetPresentValue(initial, [c1, c2, ...], rate)
  • net_present_value([c0, c1, ...], rate)

参数与选项

cash flows从第 0 期开始的现金流。
initial可选初始支出;该值按当前负现金流处理。
rate以小数表示的周期折现率。

示例

  1. 项目净现值Finance:-NetPresentValue([-1000, 400, 400, 400], 0.05)返回约 89.2992117482。