📜  Python中的 numpy.ipmt()

📅  最后修改于: 2022-05-13 01:55:40.679000             🧑  作者: Mango

Python中的 numpy.ipmt()

numpy.ipmt(rate, nper, pv, fv, when = 'end')此财务函数可帮助用户仅根据利息计算支付价值。即返回利息部分。

正在求解的方程:

代码:

# Python program explaining 
# ipmt() function 
  
import numpy as np 
''' 
Question : 
  
monthly payment needed to pay off a $10, 000 loan
in 12 years at an annual interest rate of 60 %
'''
  
Solution = np.ipmt(0.6 / 12, 2 * 12, 1 * 12, 10000)
  
# Here fv = 0 ; Also Default value of fv = 0 
print("Solution - ipmt value : ", Solution) 

输出:

Solution - ipmt value :  801.4432933339593