發表文章

目前顯示的是 12月, 2020的文章

簡佩芝 HTML +JAVASCRIPT+ 金融計算期末考

圖片
簡佩芝2021年1月期末考 現值 利率 期數 金流 終值 對應的EXCEL 開啟從選取範圍建立名稱 程式碼

16周嵌入embed臉書 iframe+javascript skd

練習嵌入臉書 嵌入iframe 嵌入javascript skd 投入、陶醉與個性,她壓倒其他所有的舞者。 由 Robert Liu 發佈於  2020年12月18日 星期五 留任昌練習舌板 嵌入iframe 嵌入javascript skd 溜蛇板的季節,來了。 由 Robert Liu 發佈於  2020年12月17日 星期四 上課同學 21號同學

第15週簡佩芝HTML+WORD方程式編輯器+轉成PDF

圖片
利率y(rate) 期數n(nper) 金流m(pmt) 終值f(fv) 參考劉任昌 金融市場講義 簡佩芝學習word方程式編輯器 年化利率1.2%(月利率0.001),買月房貸繳交20000,問貸款多少?     簡佩芝學習HTML+CSS+JavaScript程式碼 劉任昌影片教學078 劉任昌教學程式碼 <style> h1{border: 20px outset purple;     background-color: pink;     color: orange;   text-align: center;} h2{border:15px outset purple;     background-color: pink;     color: orange;   text-align: center;} </style> <script> function computePV(){   var r = document.getElementById("rate").value;   var n = document.getElementById("nper").value;   var m = document.getElementById("pmt").value;   var f = document.getElementById("fv").value;   pvif =r;   pvif++;   pvif =1/pvif**n;   var pv = (1-pvif)*m/r + f * pvif;   document.getElementById("pv").innerHTML = pv; } </script> <body> <table border="1"> <tr><td>利率y(rate)</td><td>...

第14周簡佩芝 WORD APP 與 EXCEL

圖片
簡佩芝學留任昌的程式碼 Dim n As Integer Dim spec As String Const period As Integer = 4 Const maxerror As Double = 0.0000001 Dim payment(period) As Double '廣域變數 4 維度的陣列 Private Sub CommandButton1_Click()   Dim a, b, c, f, gap As Double   Dim loopNumber As Integer   n = n + 1 '第幾次計算+1   a = 0     '報酬率0   b = 1     '報酬率1   gap = 10   loopNumber = 10   payment(0) = TextBox1.Value   payment(1) = TextBox2.Value   payment(2) = TextBox3.Value   payment(3) = TextBox4.Value   f = npv(a)   If f = 0 Then      Label9.Caption = 0   ElseIf f < 0 Then      Label9.Caption = "內部報酬率小於 0."   Else      Do While gap > mexerror And Abs(f) > maxerror And loopNumber < 100        loopNumber = loopNumber + 1        c = (a + b) / 2        f = npv(c)        If Abs(f) > maxerror And g...

簡佩芝第十三周匯入word程式

  Dim n As Integer Dim spec As String Const period As Integer = 4 Const maxerror As Double = 0.0000001 Dim payment(period) As Double '廣域變數 4 維度的陣列 Private Sub CommandButton1_Click() Dim a, b, c, f, gap As Double Dim loopNumber As Integer n = n + 1 a = 0 b = 1 gap = 10 loopNumber = 10 payment(0) = TextBox1.Value payment(1) = TextBox2.Value payment(2) = TextBox3.Value payment(3) = TextBox4.Value f = npv(a) If f = 0 Then Label9.Caption = 0 ElseIf f mexerror And Abs(f) > maxerror And loopNumber maxerror And gap > maxerror Then If f > 0 Then a = c Else b = c gap = b - a End If Else Label9.Caption = c End If Loop End If Label10.Caption = f Label11.Caption = loopNumber spec = "躉繳$" & payment(0) & ", 第1期$" & payment(1) & ",第2期$" & payment(2) & ",第3期$...