努比。npv()和Python

努比。净现值(比率、价值): 此财务功能帮助用户计算 净现值 现金流系列的一部分。

null

参数:

rate  : [scalar] Rate of discount 
value : [array_like, shape(M,)] value of 
        cash flows time series. The (fixed) time interval 
        between cash flow “events” must be the same as that
        for given rate is given. By convention, investments
        or “deposits” are -ve, income or “withdrawals” are +ve

返回:

present value as per given parameters.

正在求解的方程: 图片[1]-努比。npv()和Python-yiteyi-C++库

代码1:工作

## Python program explaining pv() function
import numpy as np
#            rate            values
a = np.npv( 0.281 ,[ - 100 , 19 , 49 , 58 , 200 ])
print ( "Net Present Value(npv) : " , a)


输出:

Net Present Value(npv) :  46.5579792365

参考资料: https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.npv.html .

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享