pmt = [0,0,0,0] #周偉玲程式設計586設定串列list
pmt[0]=float(input('躉繳金額: '))#float函數轉化為實數(浮點數)
for nper in range(1,4):
pmt[nper] = float(input('第'+str(nper)+'期回收: '))
def npv(rate):
y = - pmt[0]
for j in range(1,4):
y = y + pmt[j]/(1+rate)**j
return y
a, b, gap, f = 0.0, 1.0, 9.0, 9.0
maxerror = 0.000001
loopNumber = 1
while (gap > maxerror and abs(f) > maxerror and loopNumber < 100):
loopNumber+=1
c = (a+b)/2;
f = npv(c);
if ( abs(f) > maxerror and gap > maxerror):
if ( f>0 ):
a = c
else:
b = c
gap = b-a;
print('周偉玲報酬率: ', c)
print('周偉玲淨現值: ', f)
print('周偉玲迴圈次數: ', loopNumber)
https://zhuo-1005.blogspot.com/2025/06/blog-post_23.html
回覆刪除你太優秀了,明天下的妹子都會被你把光。https://zhuo-1005.blogspot.com/2025/06/blog-post_23.html
刪除順利執行https://zhuo-1005.blogspot.com/2025/04/0429.html
順利https://zhuo-1005.blogspot.com/2025/04/javascriptpython.html
https://zhuo-1005.blogspot.com/2025/06/pythonpresent-value.html
摩根大通銀行https://zhuo-1005.blogspot.com/2025/03/pythontkinterentrypop.html
https://danny0976790127.blogspot.com/2025/06/pythonirr.html
回覆刪除https://tzuchenchu.blogspot.com/2025/06/pythonjavascriptexcel-irr.html
回覆刪除https://kiannc1201.blogspot.com/2025/06/javascriptpythonirr.html
回覆刪除https://christina-lqw.blogspot.com/2025/06/pythonirr.html
回覆刪除https://reurl.cc/AMoGA8
回覆刪除https://mumeng-ru.blogspot.com/2025/06/pmt-0000-586list-pmt0floatinput-for.html
回覆刪除作者已經移除這則留言。
回覆刪除https://zhou-wei-ling.blogspot.com/2025/06/pythonirr.html
回覆刪除https://d11117315111.blogspot.com/2025/06/pythonjavascriptexcel-irr.html
回覆刪除https://sccabout.blogspot.com/2025/06/pmt-0000-586list-pmt0floatinput-for.html
回覆刪除https://sincewayne.blogspot.com/2025/06/pythonjavascriptexcel-irr.html
回覆刪除https://yangyoyo0125.blogspot.com/2025/06/pythonirr.html
回覆刪除https://jamie941128.blogspot.com/2025/06/pmt-0000-586list-pmt0floatinput-for.html
回覆刪除https://yuweiiiiiiiiiiii.blogspot.com/2025/06/pythonjavascriptexcel-irr.html
回覆刪除https://yangyami.blogspot.com/2025/06/pythonirr.html
回覆刪除https://winnielee0311.blogspot.com/2025/06/pythonirr.html
回覆刪除https://ting11111.blogspot.com/2025/06/javascriptpythonirr.html
回覆刪除https://d11117242.blogspot.com/2025/06/pythonjavascriptexcel-irr.html
回覆刪除https://huutingyu.blogspot.com/2025/06/httpsyoutu.html
回覆刪除https://chiuerya0515.blogspot.com/2025/06/pythonirr.html
回覆刪除https://www.blogger.com/blog/post/edit/preview/2791737318440334753/1355292955086652026
回覆刪除https://www.blogger.com/blog/post/edit/6368708880417042035/6043293570377059753
回覆刪除https://huuiiiiman.blogspot.com/2025/06/pythonirr.html
回覆刪除https://pagestjing.blogspot.com/2025/06/pmt-0000-586list-pmt0floatinput-float.html
回覆刪除https://xxxjkxxthf.blogspot.com/2025/06/pythonirr.html
回覆刪除https://vovo8564513.blogspot.com/2025/06/pmt-0000-586list-pmt0floatinput-for.html
回覆刪除https://zyixnn.blogspot.com/2025/06/624.html
回覆刪除https://slu804387.blogspot.com/2025/06/pmt-0000-586list-pmt0floatinput-for.html
回覆刪除https://lin-yujing.blogspot.com/2025/06/pmt-0000-586list-pmt0floatinput-float.html
回覆刪除https://xu-bing-wei-0804.blogspot.com/2025/06/httpszh.html
回覆刪除https://ypayupinan.blogspot.com/2025/06/python-excel-irr.html
回覆刪除https://xuan-ang.blogspot.com/2025/06/pythonirr.html
回覆刪除https://chan0528.blogspot.com/2025/06/pythonirr.html
回覆刪除https://takming123.blogspot.com/2025/06/spyder-python.html
回覆刪除