劉任昌Javascript與Python數值方法
PYTHON計算現值PRESENT VALUE程式碼
def computePV(): #python def函數: {} r = float(input('輸入利率: '))#float轉為實數 n = float(input('輸入期數: ')) m = float(input('輸入每期金額: ')) f = float(input('輸入終值: ')) pvif = 1/(1+r)**n pv = (1-pvif)*m/r + f * pvif print('現值等於 ',pv) #前面我們用Javascript這裡python #function: def #{區段} 同一個縮排indent同一個區段 computePV()
我會使用上面的PYTHON也會使用下面的JAVASCRIPT
月利率y(rate) | 期數n(nper) | 每月還款金額(pmt) | 終值f(fv) |
參考劉任昌金融市場講義https://drive.google.com/file/d/17z6UZgN5fC2XCO1L8_BQs57dgQXzbwou/view?usp=sharing
https://zhuo-1005.blogspot.com/2025/06/pythonpresent-value.html
回覆刪除https://acdhdwstzws.blogspot.com/2025/06/javascriptnumericairr.html
回覆刪除https://huuiiiiman.blogspot.com/2025/06/javascriptnumericalpresentvalue.html
回覆刪除不能執行,要查明原因,這樣才能成長。https://huuiiiiman.blogspot.com/2025/05/javascriptsincoscanvasfont.html
刪除https://pei940922.blogspot.com/2025/06/h1border-30px-outset-red-background.html
回覆刪除https://draft.blogger.com/blog/post/edit/4336680755326581508/5191540382292583662
回覆刪除https://mumeng-ru.blogspot.com/2025/06/h1border-30px-outset-red-background.html
回覆刪除https://zhang-1108.blogspot.com/2025/06/blog-post.html
回覆刪除https://lin-yujing.blogspot.com/2025/06/javascriptpython.html
回覆刪除https://xuan-ang.blogspot.com/2025/06/javascriptpython.html
回覆刪除https://yuweiiiiiiiiiiii.blogspot.com/2025/06/15word.html
回覆刪除https://gbsddik.blogspot.com/2025/06/javascriptnumerical-presentvalue.html
回覆刪除https://huutingyu.blogspot.com/2025/06/h1border-30px-outset-red-background.html
回覆刪除https://kiannc1201.blogspot.com/2025/06/15word.html
回覆刪除https://christina-lqw.blogspot.com/2025/06/15word.html
回覆刪除https://jiachiangkuo.blogspot.com/2025/06/63.html
回覆刪除https://jiachiangkuo.blogspot.com/2025/05/513.html
刪除https://jamie941128.blogspot.com/2025/06/blog-post.html
回覆刪除415.https://jamie941128.blogspot.com/2025/04/0415.html
刪除https://bfbfbfbfbfsgrjryjyrjj.blogspot.com/2025/06/blog-post.html
回覆刪除沒有EXCEL沒有Spyder. https://bfbfbfbfbfsgrjryjyrjj.blogspot.com/2025/06/0603.html
刪除https://d11117315111.blogspot.com/2025/06/javascriptpython.html
回覆刪除作者已經移除這則留言。
回覆刪除https://d11117242.blogspot.com/2025/06/javascriptpython.html
回覆刪除