躉繳 第1期 第2期 第3期 注意,包含首期躉繳的現金流量都大於0。 輸出: 報酬率: 淨現值: 迴圈次數: 張依安向劉任昌學習程式設計程式碼如下 <STYLE> H1{margin: 0; padding: 20px 0; color: #000000; text-shadow: 2PX 2PX yellow;} .Takming{border: 20px outset red;background-color: green;color: white;} .pmt{width: 60pt; height: 20pt;background-color: GRAY;color: white;} </STYLE> <SCRIPT>//註解分享過程重點,貢獻,註解給人看,註解維護MAINTAIN程式碼 const period=4;//給定期數四期 const maxerror = 0.000000001; //要求的精確度 var payment = new Array(period); function IRR() { var a = 0;//TRY報酬率是否=0 var b = 1;//TRY報酬率是否=1 var c;//如果不是上面的a,b,就測試c=(a+b)/2 var f; var gap=10; var loopNumber = 0; for (var i=0; i<period; i++) payment[i]=document.getElementsByClassName("pmt")[i].value; f = npv(a); if ( f==0 ) document.getElementById("irr").innerHTML = "內部報酬率等於0."; else if ( f<0 ) document.getElementById("irr").innerHTML = "內部報酬率小於0."; ...
sin cos. https://chan0528.blogspot.com/2025/05/javascriptfontfillstylefilltext.html
回覆刪除都會確實補做。https://chan0528.blogspot.com/2025/04/htmlbuttononclick.html
https://chan0528.blogspot.com/2025/04/javascriptpython_14.html
https://chan0528.blogspot.com/2025/04/javascriptpython.html
415. https://chan0528.blogspot.com/2025/04/pythonlistarraytuplesetdict.html
https://chan0528.blogspot.com/2025/03/animal-pythoncomments-x-animal.html