financial arithmetic : APL
This is a discussion on financial arithmetic within the APL forums in Programming Languages category; A couple of months ago I decided to hang my APL-harp onto the willows. Maybe not quite. E.g., I offered here my APL-parafernalia and somebody took my many volumes of Vector: I missed them right away! Some ten years ago I became a K-fan and I converted many of my APL-stuff into K. With the global credit-crisis there's nothing new under the sun. Banks don't even know the ins & outs of the products they're selling, let alone how to valuate them. Some 35 years ago, when with a starting life-insurance company, I had a hard time convincing the managing ...
| APL APL programming language |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| not quite. E.g., I offered here my APL-parafernalia and somebody took my many volumes of Vector: I missed them right away! Some ten years ago I became a K-fan and I converted many of my APL-stuff into K. With the global credit-crisis there's nothing new under the sun. Banks don't even know the ins & outs of the products they're selling, let alone how to valuate them. Some 35 years ago, when with a starting life-insurance company, I had a hard time convincing the managing director and the salesmen that they got carried away in their creativity of inventing new products - far beyond the necessary security! Please, remember John M. Keynes statement: nothing as secure as a life insurance company (of which he was the director). Recently, I dropped notes to several politicians here that they have forgotten their basic knowledge of ordinary general and universal financial arithmetic (to their annoy, BTW). Anyway. I'd like to share with the APL/K/J-community the code in K of some major topics in financial math, maybe someone will find useful things amongst it. The scripts are structured to my best knowledge: functions, controls (dependencies), show, and there is a short description of the theory at the bottom of each script. It's all k3 - I missed the junction k3 => k4 => q. The downloads are packages created by Package for the Web from Installshield and the components can be extracted by way of WinZip or other. Some applications need data and the appropriate files come with the download. Those files can be exchanged with your own ones - the code has to be adjusted accordingly. The applications are "as is". Here are the lines: On amortization of annuities: http://www.ganuenta.com/annuity_k.exe On determining the price of bonds/equities: http://www.ganuenta.com/bonds.exe On buying and selling stocks: http://www.ganuenta.com/stocks.exe On graduation of mortatlity: http://www.ganuenta.com/mortality.exe On general actuarial factors: http://www.ganuenta.com/actfact.exe For Dyalog APL users, I would press onto heart again that the Causeway workspace (or CPro) is a gold-vein for building, efficiently, neatly and fast, any size of (commercial) application in APL. Here is an example on how to do it: http://www.ganuenta.com/annuity.exe (it probably won't matter that the captions in the display are in Dutch) Questions and comments welcome, as always. |
|
#2
| |||
| |||
| <<< Banks don't even know the ins & outs of the products they're selling, let alone how to valuate them. Some 35 years ago, when with a starting life-insurance company, I had a hard time convincing the managing director and the salesmen that they got carried away in their creativity of inventing new products - far beyond the necessary security!>>> Jan, I can only FULLY agree with you ! |


